Problems with POST method

48 views
Skip to first unread message

Jarda Lhotak

unread,
Jan 18, 2011, 4:54:05 AM1/18/11
to Siege Users
Hi all,

first of all I'd like to express my big thank for this tool!

However as I'm using it more and more I encountered one problem with
POST.

I wanted to test a form submitting post to a comment (written
in .NET). When I tried wget:
wget --post-data '__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=/
wEPDwUKMTU2Nzc4NDM5OWQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFFWN0bDAwJGNwMSRjaGJJc05vdGlmeUU
%2BC76p8%2BwXm2Si42gJsjrs%2B8Vm&__EVENTVALIDATION=/wEWCALwtZeKDAL8x
%2BmQAQLbz9GyDwKToK7CCwKqmdrgDwLmsOOPCgLL4sf2DQKWzOzCBtxb9Y4a5QR6tXC057pkFCVJhKRE&ctl00$cp1$hfSessionId=3dac6e1c-7c3a-4b2b-8465-1045ab8cdc51&ctl00$cp1$tbName=Jarda
+test&ctl00$cp1$tbTown=Praha&ctl00$cp1$tbEmail=this
%40ismy.mail.com&ctl00$cp1$tbComment=This+is+my
+comment&ctl00$cp1$chbIsNotify=on&ctl00$cp1$btnSave=Send'
http://qa64-pangea.od.rferl.org/forumsendcomment/2275648/0.html

The page processes correctly

however the same string in siege didn't work - here's my link from
links file:
http://qa64-pangea.od.rferl.org/forumsendcomment/2275648/0.html POST
__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=/
wEPDwUKMTU2Nzc4NDM5OWQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFFWN0bDAwJGNwMSRjaGJJc05vdGlmeUU
%2BC76p8%2BwXm2Si42gJsjrs%2B8Vm&__EVENTVALIDATION=/wEWCALwtZeKDAL8x
%2BmQAQLbz9GyDwKToK7CCwKqmdrgDwLmsOOPCgLL4sf2DQKWzOzCBtxb9Y4a5QR6tXC057pkFCVJhKRE&ctl00$cp1$hfSessionId=3dac6e1c-7c3a-4b2b-8465-1045ab8cdc51&ctl00$cp1$tbName=Jarda
+test&ctl00$cp1$tbTown=Praha&ctl00$cp1$tbEmail=this
%40ismy.mail.com&ctl00$cp1$tbComment=This+is+my
+comment&ctl00$cp1$chbIsNotify=on&ctl00$cp1$btnSave=Send

Please note that mentioned addresses aren't public accessible - this
is our testing environment.
I was thinking that it may be a problem on .NET (and validations ...)
but when I get wget working, I tend to feel that siege is processing
the page slightly different way.

If you would like to replicate that issue, feel free to contact me and
I'll give you access to testing environment ...
Many thanks,
Jarda

je...@joedog.org

unread,
Jan 18, 2011, 9:53:35 AM1/18/11
to siege...@googlegroups.com
Jarda,

You can contact me at jeff at joedog dot org with access info. Nothing
stands out. Maybe you can see something with --debug or --get?

Here I took your post data and placed it in a file called post.txt Then I
posted it using the redirect character:

LT $ siege -g "http://www.joedog.org/echo.php POST <post.txt"
POST /echo.php HTTP/1.1
Host: www.joedog.org
Accept: */*
Accept-Encoding: gzip
User-Agent: JoeDog/1.00 [en] (X11; I; Siege 2.70b8)
Connection: close
Content-type: application/x-troff
Content-length: 532

__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=/wEPDwUKMTU2Nzc4NDM5OWQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFFWN0bDAwJGNwMSRjaGJJc05vdGlmeUU%2BC76p8%2BwXm2Si42gJsjrs%2B8Vm&__EVENTVALIDATION=/wEWCALwtZeKDAL8x%2BmQAQLbz9GyDwKToK7CCwKqmdrgDwLmsOOPCgLL4sf2DQKWzOzCBtxb9Y4a5QR6tXC057pkFCVJhKRE&ctl00$cp1$hfSessionId=3dac6e1c-7c3a-4b2b-8465-1045ab8cdc51&ctl00$cp1$tbName=Jarda+test&ctl00$cp1$tbTown=Praha&ctl00$cp1$tbEmail=this%40ismy.mail.com&ctl00$cp1$tbComment=This+is+my+comment&ctl00$cp1$chbIsNotify=on&ctl00$cp1$btnSave=Send

HTTP/1.1 200 OK
Date: Tue, 18 Jan 2011 14:50:12 GMT
Server: CERN/1.0A
X-Powered-By: PHP/5.2.5
Content-Length: 228
Connection: close
Content-Type: text/html; charset=WINDOWS-1251

You could also use --debug/-D but that's helpful if you just use one user
one time, i.e.,

LT $ siege -c1 -r1 -D "http://www.joedog.org/echo.php POST <post.txt"
** SIEGE 2.70b8: debugging enabled

Copyright (C) 2010 by Jeffrey Fulmer, et al.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.

** Preparing 1 concurrent users for battle.
The server is now under siege...
[debug] client.c:252 attempting connection to www.joedog.org:80
[debug] client.c:262 creating new socket: www.joedog.org:80
[debug] client.c:281 good socket connection: www.joedog.org:80
POST /echo.php HTTP/1.1
Host: www.joedog.org
Accept: */*
Accept-Encoding: gzip
User-Agent: JoeDog/1.00 [en] (X11; I; Siege 2.70b8)
Connection: close
Content-type: application/x-troff
Content-length: 532

__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=/wEPDwUKMTU2Nzc4NDM5OWQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFFWN0bDAwJGNwMSRjaGJJc05vdGlmeUU%2BC76p8%2BwXm2Si42gJsjrs%2B8Vm&__EVENTVALIDATION=/wEWCALwtZeKDAL8x%2BmQAQLbz9GyDwKToK7CCwKqmdrgDwLmsOOPCgLL4sf2DQKWzOzCBtxb9Y4a5QR6tXC057pkFCVJhKRE&ctl00$cp1$hfSessionId=3dac6e1c-7c3a-4b2b-8465-1045ab8cdc51&ctl00$cp1$tbName=Jarda+test&ctl00$cp1$tbTown=Praha&ctl00$cp1$tbEmail=this%40ismy.mail.com&ctl00$cp1$tbComment=This+is+my+comment&ctl00$cp1$chbIsNotify=on&ctl00$cp1$btnSave=Send

HTTP/1.1 200 OK
Date: Tue, 18 Jan 2011 14:52:49 GMT
Server: CERN/1.0A
X-Powered-By: PHP/5.2.5
Content-Length: 228
Connection: close
Content-Type: text/html; charset=WINDOWS-1251

done.
Transactions: 1 hits
Availability: 100.00 %
Elapsed time: 1.21 secs
Data transferred: 0.00 MB
Response time: 0.19 secs
Transaction rate: 0.83 trans/sec
Throughput: 0.00 MB/sec
Concurrency: 0.16
Successful transactions: 1
HTTP OK received: 1
Failed transactions: 0
Longest transaction: 0.19
Shortest transaction: 0.19

Reply all
Reply to author
Forward
0 new messages