Re: [Http-webtest-general] Temporary redirect and POST don't work together
Brought to you by:
m_ilya,
richardanderson
From: Ilya M. <il...@ip...> - 2003-10-02 09:00:48
|
>>>>> "TG" == Thieme Geoff <Geo...@we...> writes: TG> Ilya, Hi Geoff, TG> I noticed that a temporary redirect (HTTP status code 302) and a POST don't TG> work together using WebTest 2.04. TG> The error I get is "Expected '200' and got: 408 Request Timeout". TG> Using an old version of WebTest (1.07), I got the message "Return Code: 302 TG> Moved Temporarily (0 bytes)". TG> When I switch the POST to a GET everything works, but my user name and TG> password are displayed in the web logs. TG> Would you be willing to make a change to WebTest to allow 302 TG> redirects inside a POST HTTP request? Richard Anderson made this TG> change for me in an unofficial WebTest 1.x release, so I think it TG> is possible. But then again, I don't know how your new code TG> rewrite is structured. I have code to support redirects in 2.xx. I've just added a test case (POST with params followed by redirect response) for selftest suite of WebTest and it passes correctly with exception that it causes LWP to produce warning 'Content-Length set when there is not content, fixed'. I did quick google search by this warning text and found this post (http://xrl.us/vfn) descriping a very similar problem. It includes a patch for LWP. Can you try it and tell me if it helps? Not sure why it works in 1.x. TG> I also noticed that the archives for this list don't work. TG> http://sourceforge.net/mailarchive/forum.php?forum=http-webtest-general TG> says: TG> ERROR TG> Either your mailing list name was misspelled or your mailing list TG> has not been archived yet. If this list has just been created, TG> please retry in 2-4 hours Maillists works ok but SourceForge has permanent problems with archives. Sometimes they work and sometimes they are not (for example I've just checked and they were available right now). This and permanent problems with CVS annoys me as hell and I'm seriously considering removing the project from SourceForge and hosting it somewhere else. -- 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 |