Simple Python web proxy stalls for some web sites

Bryan Olson fakeaddress at nowhere.org
Sat Oct 9 04:23:17 CEST 2004


Richie Hindle wrote:

[Bryan Olson wrote:]
 >>I checked, and Google is answering in good faith.
 >
 > Try doing an actual query:
 >
 >>>>import urllib2
 >>>>f = urllib2.urlopen("http://www.google.com/")  # Works OK
 >>>>f = urllib2.urlopen("http://www.google.com/search?q=python")
 >
 > Traceback (most recent call last):
 > [...]
 > urllib2.HTTPError: HTTP Error 403: Forbidden

You're right about that.  I just tried the base-page URL that
was hanging the guys proxy.


-- 
--Bryan



More information about the Python-list mailing list