>From the web - http://docs.python.org/howto/urllib2.html :
req = urllib2.Request('http://www.python.org/fish.html')
try:
urllib2.urlopen(req)
except HTTPError, e:
print e.code
print e.read()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---