in reply to Re: WWW::Mechanize and Cookies generated through Javascript
in thread WWW::Mechanize and Cookies generated through Javascript

Hi,

As I am using this code to create a proxy server through url rewriting. The code works fine for displaying requested site. But when I try to login through web-browser, then problem starts. And I find that is because of cooikes. Please guide me that I am on right track or not.

I am trying something like URL Rewriting

Any further guidance would appreciable.

Thanks
  • Comment on Re^2: WWW::Mechanize and Cookies generated through Javascript

Replies are listed 'Best First'.
Re^3: WWW::Mechanize and Cookies generated through Javascript
by jethro (Monsignor) on Aug 04, 2010 at 11:40 UTC

    The link you posted only tells about how to reroute a connection attempt to a proxy, not how the proxy itself should work. It doesn't change the validity of my and rowdogs answers. Have you tried WWW::Scripter? Have you tried to disassemble the javascript code?

      I found that it not the cookies that causing the problem..It the post request. How can I handle post method in mechanize.

      I also like to know how it works..I posted the code which works in same. When I submit the login page then problem starts due to form method POST. If I replace post to get it works well

        I'm no expert on Mechanize but similar to the get() method there is a put() method. Documentation is in LWP::UserAgent.
Re^3: WWW::Mechanize and Cookies generated through Javascript
by shanu_040 (Sexton) on Aug 04, 2010 at 12:59 UTC

    I found that it not the cookies that causing the problem..It the post request. How can I handle post method in mechanize.

    I also like to know how it works..I posted the code which works in same. When I submit the login page then problem starts due to form method POST. If I replace post to get it works well