RSS Forums RSS
Please support our Python advertiser: Programming Forums
Views: 3732 | Replies: 3 | Thread Tools  Display Modes
Join Date: Jun 2005
Posts: 142
Reputation: G-Do is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 11
G-Do's Avatar
G-Do G-Do is offline Offline
Junior Poster

Opening HTTP sessions with Python

  #1  
Jul 20th, 2005
Hi,

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?

EDIT:
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!
AddThis Social Bookmark Button
Reply With Quote  

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the Python Forum
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:59 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC