[httperf] requests doesn't pass through proxy server
martin.arlitt at hp.com
Tue Oct 2 10:54:39 PDT 2007
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 192.168.0.1 and its port is
8088, and your Web server's 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=https://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., https://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 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
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
Is anything missing here. Please suggest the solution.
Save all your chat conversations. Find them online.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the httperf