This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: More urllib2 examples
Type: Stage:
Components: Documentation Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: jjlee, loewis, rhettinger
Priority: normal Keywords: patch

Created on 2003-08-31 19:47 by jjlee, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
urllib2_examples.patch jjlee, 2003-08-31 19:47
Messages (3)
msg44550 - (view) Author: John J Lee (jjlee) Date: 2003-08-31 19:47
I'm posting this here because I couldn't see how to 
upload a file to bug 545480. 
 
Here are some more examples. 
 
I don't use a proxy, so I haven't tested them.  They're 
very simple though (famous last words...). 
 
I include examples about adding headers, since I get the 
impression people assume it's awkward to do this with 
urllib2.  Also, User-Agent is a special case that often 
comes up. 
 
The patch also fixes a couple of markup nits. 
msg44551 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2003-08-31 23:56
Logged In: YES 
user_id=80475

Would you solicit someone to test these for you and report 
back when you're confident (based on running code) that 
they are right.
msg44552 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-08-25 11:25
Logged In: YES 
user_id=21627

The examples look fine to me. Applied as urllib2.tex 1.21
History
Date User Action Args
2022-04-10 16:10:55adminsetgithub: 39158
2003-08-31 19:47:56jjleecreate