[httperf] requests doesn't pass through proxy server

Arlitt, Martin martin.arlitt at hp.com
Tue Oct 2 10:54:39 PDT 2007

Hi Rahul


httperf doesn't know about proxies, so it won't 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


For example, if your proxy's IP address is and its port is
8088, and your Web server's IP address  is (on the default
port 80) then the following command should retrieve the home page from
your web server via your proxy:


httperf -server= -port=8088 -uri=


if your Web server is running on a different port, e.g., 8000, then add
that to the uri; e.g.,


in other words, point httperf at the proxy instead of the server, and
set the uri to what would appear in your browser's 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.





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= --port=80 --uri=/
--rate=2 --send-buffer=4096 --recv-buffer=16384 --num-conns=40

Is anything missing here. Please suggest the solution.




Save all your chat conversations. Find them online.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://napali.hpl.hp.com/pipermail/httperf/attachments/20071002/830f6a60/attachment.htm

More information about the httperf mailing list