urllib.urlretrieve("http://free.bsdshell.net/")

Fredrik Lundh fredrik at effbot.org
Wed Jan 24 11:24:22 EST 2001


Erno Kuusela wrote:
> i think the user-agent theory cannot work, because client
> cannot have sent the user-agent string if the connect() call
> faills with "connetion refused" :)

it can redirect the client to nowhere, of course.

(if you don't like the agent string, return 302 with
an invalid address)

Cheers /F





More information about the Python-list mailing list