[httperf] Regarding adding http headers

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


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 --port 2234 --num-conns 1 --num-calls 1
--uri https://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 2234                                    Trying                                           Connected to
Escape character is '^]'.
GET https://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

<html><head><title>Yahoo!</title><base href=https://www.yahoo.com/
eta http-equiv="PICS-Label" content='(PICS-1.1
tml" l gen true for "https://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.


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