[Webtest] Setting User-Agent (newbie?)

Peter Cruickshank webtest@lists.canoo.com
Thu, 13 Nov 2003 15:52:05 +0000


Hi

I'm testing some php scripts to see how they handle spider detection. 

I am using the following config (following the example in the docs):
      <config
            host="192.168.1.100"
            port="80"
            protocol="http"
            basepath="be70"
            saveresponse="true"
            resultpath="pages"
            verbose="true"
      >
         <header name="User-Agent" value="spider"/>
      </config>

But when I output the server variables (ie $_SERVER ) from PHP, it tells me 
that:
HTTP_USER_AGENT=httpunit/1.5

(This is running Apache 2.0.47 with PHP 4.3.1 on Mandrake 9.1)

... what am I doing wrong? How do I change user--agent?

Thanks in advance!

-- 
Peter Cruickshank
peter at cruickshank dot biz