W::Mechanize similarly to urllib. Nice. :-)
Octavian
- Original Message -
From: "Karra"
Newsgroups: comp.lang.python
To:
Sent: Wednesday, December 29, 2010 2:35 PM
Subject: Re: Making urllib2's POST 302 handle same as Perl LWP's behaviour
On Dec 29, 3:57 pm,
On Dec 29, 3:57 pm, Karra wrote:
> Can someone point me to how I can get the default LWP:UserAgent
> behaviour of handling this scenario using urllib2?
Out of frustration, I decided to give 'mechanize' a try. It came as an
awesome surprise that mechanize implements the exact api of urllib2 -
mea
I am doing a POST to a webserver and get a 302 Found response
(redirect). urllib2's default behaviour is to do a GET on the new url
from the Location: URI in the 302 response.
This is different from what I have found with LWP::UserAgent-
>request() in perl. After much searching I understand there