[Webtest] Setting User-Agent (newbie?)
Dierk Koenig
webtest@lists.canoo.com
Thu, 13 Nov 2003 17:21:00 +0100
Hi Peter,
this is a known deficiency since httpunit chose to move the
user-agent header from the general settings to its own HttpUnitOptions.
You need a patch that was posted some time ago to this list :-)
cheers
Mittie
> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Peter Cruickshank
> Sent: Donnerstag, 13. November 2003 16:52
> To: webtest@lists.canoo.com
> Subject: [Webtest] Setting User-Agent (newbie?)
>
>
> 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
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
>