I'm writing a client program that downloads data from an HTTP server via urllib, like so:
ufile = urllib.urlopen(urlstring) text = ufile.read() # Do stuff with text
Nice and simple. Unfortunately, the server only accepts requests with a session ID embedded inside - and I don't know how to open sessions using urllib. I've tried looking in the forums here and elsewhere online, and all I got was very generic info on cookies - nothing specific to Python, really.
Does anyone have experience doing this? Can you send me a link?
I found out about cookielib; I'm seeing what I can do with it now. Will let you know if I get it working. Still open to hints!