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

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re^3: POST Method 302 Error
by moritz (Cardinal) on Jul 23, 2010 at 08:51 UTC
    The documentation has a very clear description on how redirects are handled, and how you can make it follow redirects on POST requests.

    I don't know how to formulate it in a better way than the documentation, so I referain from doing it.

    After reading the documentation, is there anything that's still not clear to you?

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

      Thanx a lot, I have figured out the problem. Now its working :) Thank you for your help.

      Hi, I added push @{$browser->requests_redirectable }, 'POST'; before making request. Now I am getting 404 Not Found.
        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.
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^3: POST Method 302 Error
by Corion (Patriarch) on Jul 23, 2010 at 14:04 UTC

    You haven't read the link moritz gave you. Read it and understand it.