Title: More urllib2 examples
Type: Stage:
Components: Documentation Versions: Python 2.3
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 2004-08-25 11:25 by loewis. This issue is now closed.

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 

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 

The examples look fine to me. Applied as urllib2.tex 1.21
Date User Action Args
2003-08-31 19:47:56jjleecreate