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-03 08:12:55
|
>>>>> "TG" == Thieme Geoff <Geo...@we...> writes: TG> [..snip..] TG> I've run out of ideas to try. If WebTest still allows LWP to TG> handles redirects internally, this may be a problem with TG> LWP. Anyone have any other ideas? I can give you web site address TG> URL and user name if you think it might help. Can you please try following test script: use LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->requests_redirectable([qw(GET HEAD POST)]); my $response = $ua->post('http://your.site.url', { login => 'xxx', password => 'yyy' }); if ($response->is_success) { print "ok\n" } else { print "Error: " . $self->status_line . "\n"; } If it reproduces the problem (i.e. you get same error message) then it should be either a problem in LWP or in reverse proxy. You can add use LWP::Debug (+); to get all debug log from LWP::Debug. They may be helpful to find what's going on. As I understand HTTP::WebTest 1.xx didn't use $ua->requests_redirectable([qw(GET HEAD POST)]) to let LWP::UserAgent $ua->handle redirects after POST but was doing it itself. Probably it $ua->explains the difference. TG> [..snip..] -- 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 |