I have the following code to do a postback to a remote URL:
request = urllib2.Request(\'http://www.example.com\', postBackData, { \'User-Agent\' : \'My User
I catch:
httplib.HTTPException urllib2.HTTPError urllib2.URLError
I believe this covers everything including socket errors.