In article <[email protected]>,
Lie Ryan <[email protected]> wrote:
> On 13/11/14 03:57, Larry Martell wrote:
> > We were all making this much harder than it is. I ended up doing this:
> >
> > wp = urllib.request.urlopen('http://php_page/?' + request.POST.urlencode())
> > pw = wp.read()
You can do this if you want, but it's much easier to use requests
library (http://docs.python-requests.org/). Compared to using the raw
urllib stuff, requests makes it trivial to deal with argument encoding,
cookie management, and a zillion other little details which will drive
you crazy if you try to roll your own with urllib.
--
https://mail.python.org/mailman/listinfo/python-list