in reply to Re^3: POST Method 302 Error
in thread POST Method 302 Error

Hi, I added push @{$browser->requests_redirectable }, 'POST'; before making request. Now I am getting 404 Not Found.

Replies are listed 'Best First'.
Re^7: POST Method 302 Error
by moritz (Cardinal) on Jul 23, 2010 at 12:12 UTC
    Which means that the page redirected you to a non-existing page. Either the server-sided script is broken, or you haven't provided the same information that you normally would if you submitted the form in your browser.

    Or there's something different with cookie-handling or so.

    The easiest way to find out is to do the same request once in a browser, and once in a script, and record the HTTP headers (both request and response) with a tool like wireshark, and then compare them.

    Perl 6 - links to (nearly) everything that is Perl 6.