Jarek Zgoda jzgoda at o2.usun.pl
Thu Feb 28 14:51:02 CET 2008

Steve Holden napisał(a):

>>> Probably a silly question but I am writing a CGI script which need to
>>> check the referring URL, can anyone provide any pointers? I have
>>> looked at URLLib2 and a couple of other libraries, but am slightly
>>> confused.
>> Using httplib you can issue HEAD request to check if it does not return
>> 404 response, but this works only with HTTP/HTTPS urls.
> It's unlikely that any other type of URL would result in the browser
> sending a "Referer:" header.

Right, perfectly valid assumption. ;)

I am bit too defensive today.

Jarek Zgoda
Skype: jzgoda | GTalk: zgoda at jabber.aster.pl | voice: +48228430101

"We read Knuth so you don't have to." (Tim Peters)

More information about the Python-list mailing list