[Webtest] Setting User-Agent (newbie?)

Marc Guillemot webtest@lists.canoo.com
Thu, 13 Nov 2003 20:59:14 +0100

Hi Peter,

the problem should be fixed in the last build (even if Build number 379, it's 
the build 380).


Peter Cruickshank wrote:
> Hi Mittie
> Thanks for the response.
> Can you give me a rough clue where to look? - I searched the list (or agent 
> and user-agent) and found a messages from Stephane Besson in April 2003 and 
> Marc Guillemot in Feb 2003 complaining about the same problem - with no reply 
> to either as far as I could see.
> I also found the original announcement by you in May 2002 of the ability to 
> add header info, so I guess it's somewhere in between, if only I could think 
> of the right search term. I couldnt see it by scanning the quarterly message 
> listing...
> At some point, it'd be cool if the examples in the documentation were updated. 
> Or a note was added to the troubleshooting page with a link to the patch. (I 
> know it's easy for me to suggest, since I wont have to do any of the work!)
> Cheers.
> P
> On Thursday 13 Nov 2003 4:21 pm, Dierk Koenig wrote:
>>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 :-)
>>>-----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?)
>>>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=""
>>>            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
>>>(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 mailing list