[httperf] requests doesn't pass through proxy server
rahul gundecha
rahoolgundecha at yahoo.co.in
Tue Oct 2 23:35:49 PDT 2007
Thanks alot Martin for your kind help.
I verified your solution by looking into header, "via" had entry for proxy.
Thanks again for explaining the complete solution. I really appreciate that.
regards,
-Rahul
"Arlitt, Martin" <martin.arlitt at hp.com> wrote: v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Hi Rahul
httperf doesnt know about proxies, so it wont automatically discover the proxy from your environment variable.
Although httperf was designed to work specifically with Web servers, you can make it work with a proxy:
httperf server=proxy-ipaddr port=proxy-port uri=http://server-ipaddr/uri
For example, if your proxys IP address is 192.168.0.1 and its port is 8088, and your Web servers IP address is 192.168.0.2 (on the default port 80) then the following command should retrieve the home page from your web server via your proxy:
httperf server=192.168.0.1 port=8088 uri=http://192.168.0.2/
if your Web server is running on a different port, e.g., 8000, then add that to the uri; e.g., http://192.168.0.2:8000/.
in other words, point httperf at the proxy instead of the server, and set the uri to what would appear in your browsers address bar..
To verify that this is going through the proxy, you can use the print-reply=header option, and look for http headers like Proxy-Connection or Via (or look in your proxy and server logs, or use tcpdump, etc).
I hope this helps.
Martin
---------------------------------
From: httperf-bounces at napali.hpl.hp.com [mailto:httperf-bounces at napali.hpl.hp.com] On Behalf Of rahul gundecha
Sent: Monday, October 01, 2007 5:49 AM
To: httperf at napali.hpl.hp.com
Subject: [httperf] requests doesn't pass through proxy server
Hi all,
I am trying to test my proxy server performance. For that I am generating httperf requests to a web server. httperf client, proxy server & web server all are running in same LAN.
I have set environment variable http_proxy to my proxy address. But still httperf requests doesn't go through it. Whereas requests from browser goes through proxy.
httperf --timeout=12 --client=0/1 --server=10.105.1.3 --port=80 --uri=/ --rate=2 --send-buffer=4096 --recv-buffer=16384 --num-conns=40 --num-calls=1
Is anything missing here. Please suggest the solution.
thanks,
-Rahul
---------------------------------
Save all your chat conversations. Find them online.
_______________________________________________
httperf mailing list
httperf at linux.hpl.hp.com
http://www.hpl.hp.com/hosted/linux/mail-archives/httperf/
---------------------------------
Get the freedom to save as many mails as you wish. Click here to know how.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://napali.hpl.hp.com/pipermail/httperf/attachments/20071003/19b1522d/attachment.htm
More information about the httperf
mailing list