in reply to WWW Mechanize (redirect_ok) problem

Hi,

How is the redirection in your web application implemented?

I haven't looked really into the details of www::mechanize but I suspect your redirect_ok() isn't really finding a correct redirect and gets confused

Or maybe that 'POST' param is wrong?

--
if ( 1 ) { $postman->ring() for (1..2); }
  • Comment on Re: WWW Mechanize (redirect_ok) problem

Replies are listed 'Best First'.
Re^2: WWW Mechanize (redirect_ok) problem
by Amar (Sexton) on Sep 21, 2005 at 11:06 UTC
    Hi, Thanx for reply. The redirection is implemented like: page A displays page B
    page B will be displayed STILL COM wrappers sends a signal like yes or no. If yes page C is displayed and on no page D is diplayed. Its a server side redirect based on yes/No from COM Wrappers. regards amar

      Hi,

      Based on what you just said it seems you don't use http redirect.

      So I think you don't need the redirect_ok() but should check instead the html you receive to determine in which page you are.

      --
      if ( 1 ) { $postman->ring() for (1..2); }