[Http-webtest-general] Re: new feature
Brought to you by:
m_ilya,
richardanderson
From: Ilya M. <il...@ma...> - 2002-10-09 16:26:43
|
>>>>> On Wed, 9 Oct 2002 17:08:47 +0200, Kevin Baker <ke...@ri...> said: KB> Ilya, KB> first big thanks to Richard and you for a very useful module. Thank you for your kind words. KB> I was wondering if you'd consider a feature. We sometimes like KB> to test code that depends on the HTTP_USER_AGENT. The field is always KB> set to "WebTest/$VERSION " . $user_agent->agent() at the moment KB> but it'd be handy to be able to set it abitrarily. For instance to KB> exercise code that displays different features depending on the KB> type of browser. KB> I added a 'user_agent' field to the test_options hash to test it out. KB> What do you think? Perhaps this could be taken further and specified KB> per test as well. KB> Kev Hi Kevin, Thanks for you patch but this feature is already in beta branch of HTTP-WebTest. You can get it from http://search.cpan.org/author/ILYAM/HTTP-WebTest/ Since version 1.99_04 you can use 'user_agent' to specify user agent and since 1.99_06 you can set any HTTP header in requests using 'http_headers'. P.S. In the future please use official module mailling lists for questions/comments/suggestions/etc so others can benefit from answers. You can subscribe at http://lists.sourceforge.net/lists/listinfo/http-webtest-general (though it doesn't require subscription to post there). -- Ilya Martynov, il...@ip... CTO IPonWEB (UK) Ltd Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net Personal website - http://martynov.org |