Re: [Http-webtest-general] HTTP::WebTest::Request bug?
Brought to you by:
m_ilya,
richardanderson
From: Ilya M. <il...@ip...> - 2003-07-14 08:31:04
|
>>>>> "BW" == Brian Webb <bw...@ya...> writes: BW> Hello, Hello, BW> I noticed that HTTP::WebTest::Request module reformats that url BW> during the tests. I have run into a problem when using wt to test BW> web pages that redirect you to another web page. BW> I am trying to test the return code of a url that looks something BW> like: BW> http://website.com?http://website2.com?var=val BW> It appears that HTTP::WebTest::Request::uri is encoding everything BW> after the first question mark. This behavior is different than BW> HTTP::Request::uri and consequently, web test reports a 403 error BW> instead of a 200. If I manually remove the uri method from BW> HTTP::WebTest::Request (so it will use the method from the base BW> class), then the test returns a 200 code. BW> Is there an easy way to tell HTTP::WebTest::Request::uri to behave BW> the same as HTTP::Request? Is there another way to get the test to BW> succeed for this url? Thanks. Thanks you for your bug report. This have been fixed in CVS version [1] which will be released soon. In the new version of HTTP::WebTest it will not modify test URL unless it is doing GET request and test parameter 'params' is specified in a test specification. [1] http://sourceforge.net/cvs/?group_id=21337 -- 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 |