[httperf] not able to send post data to php script using httperf

Jaime Peñalba jpenalbae at gmail.com
Thu Sep 27 15:42:25 PDT 2007


Hello,

Take a look to this message from the maillist archive:
http://www.hpl.hp.com/hosted/linux/mail-archives/httperf/2007-May/000378.html

I suffered the same issue, so i created the patch attached and sent it
to this list, you can see the usage at the archived mail.

Hope it helps you.


Regards,
Jaime.


2007/9/19, uakhila at cse.iitb.ac.in <uakhila at cse.iitb.ac.in>:
> Hi,
>   I am trying to measure the performance of a php web application.
>   It requires me to send post data to php page. I have come up with a
> sample php page checklogin.php. This file is present in
> /var/www/testphp. WebServer is Apache.
> The contents of the checklogin.php are
>
> <?php
> $myusername=$_POST['myusername'];
> $mypassword=$_POST['mypassword'];
>
> echo "\nusername $myusername";
> echo "\npassword $mypassword";
> ?>
>
> I tried to use httperf as follows
> Method A:
> root> httperf --server cerf.cse.iitb.ac.in --uri
> "/testphp/checklogin1.php?myusername=user1&mypassword=1234" --print-reply
> body --method=POST
>
> Method B: using sesslog
> root> httperf --server cerf.cse.iitb.ac.in --wsesslog 1,1,session.log
>
> the contents of session log file is
> /testphp/checklogin.php method=POST contents =
> "myusername=user2&password=1234"
>
> With both the methods, in script checklogin.php, myusername and mypassword
> are blank
>
> I am not able to pass the post data to php script using httperf
> If anybody knows solution to this problem please let me know.
> TIA
> Akhila
>
>
>
> _______________________________________________
> httperf mailing list
> httperf at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/httperf/
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: httperf-0.9.0-content_type.patch
Type: text/x-patch
Size: 2461 bytes
Desc: not available
Url : http://napali.hpl.hp.com/pipermail/httperf/attachments/20070928/0381bc46/httperf-0.9.0-content_type.bin


More information about the httperf mailing list