[Tutor] Problems sending POST data

Kent Johnson kent37 at tds.net
Fri May 2 02:52:33 CEST 2008


On Thu, May 1, 2008 at 6:02 PM, Alex Krycek <agent.krycek at gmail.com> wrote:
> Hello all,
>
> I've been trying to send POST data to this library database with Python's
> urllib, but I can't get it to work.

It looks like the library server wants to set a cookie in your browser
and also responds with at redirect. I don't think urllib will handle
either of those. Look at this page:
http://personalpages.tds.net/~kent37/kk/00010.html
for some tips on how to use urllib2 to handle cookies.

Kent


More information about the Tutor mailing list