[httperf] Regarding adding http headers

Janez Zupan httperf@napali.hpl.hp.com
Tue, 14 Aug 2001 14:06:40 +0200 (CEST)


> 
> Hi Martin,
> 
> I did try using the no-host-hdr option as well as adding
> \n at the end of the the Host header, that I specfiy in 
> the add-header option. But, since I specify a no-host-hdr
> the httperf adds a newline inbetween the user-agent and
> the host header as a result of which I am getting a 404
> error. 
> 
> SH0:GET http://www.yahoo.com HTTP/1.1
> SH0:User-Agent: httperf/0.8
> SH0:
> SH0:Host: www.yahoo.com
> SS0: header 122 content 0
> RH0:HTTP/1.1 404 Not Found
> 
> 
> Can this newline be avoided ?  

Hi,

Why don't you just use --server-name option?
>From man page:
       --server-name=S
              Specifies the (default) server name that appears in
              the  "Host:"  header  of  every  request  sent   by
              httperf.  Without this option, the host name (or IP
              address)  specified  by  option  --server  is  used
              instead.


Regards
  Janez


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