[httperf] Regarding adding http headers

Gayathri Ramakrishnan httperf@napali.hpl.hp.com
Thu, 09 Aug 2001 10:13:58 +0530


Hi,

We are using httperf for doing http complacence testing of one
of our servers. This server expects a "Host" header along
with the "GET" request in order to retrive the requested URI.

How do I include this header using the httperf tool. I am aware
of the option called "add-header" in the tool. I tried using this
as follows.

httperf --server 192.168.100.77 --port 2234 --num-conns 1 --num-calls 1
--uri http://www.yahoo.com --print-reply --print-request --http-version
1.1 -debug 3 --method GET --add-header "Host: www.yahoo.com" 

but it doesn't seem to be retriving the page for me. But when
I try simulating the same thru telnet and issue a GET it works.

telnet 192.168.100.77 2234                                    Trying
192.168.100.77...                                           Connected to
192.168.100.77.
Escape character is '^]'.
GET http://www.yahoo.com HTTP/1.1
Host: www.yahoo.com

HTTP/1.0 200 OK
Date: Thu, 09 Aug 2001 04:37:32 GMT
Content-Type: text/html
X-Cache: MISS from npd-proxy.hcltech.com
Proxy-Connection: close
X-Squid-Reserve:
X-Squid-MaxCount:

<html><head><title>Yahoo!</title><base href=http://www.yahoo.com/
target=_top><m
eta http-equiv="PICS-Label" content='(PICS-1.1
"http://www.rsac.org/ratingsv01.h
tml" l gen true for "http://www.yahoo.com" r (n 0 s 0 v 0 l 0))'></head>
<script language="javascript">
function ch() {
.................
....................



Let me know how this problem can be solved.

Thanks,
Gayathri

--
To unsubscribe: echo unsubscribe httperf | mail majordomo@linux.hpl.hp.com