URLlib2?

Steve Holden steve at holdenweb.com
Thu Feb 28 14:43:38 CET 2008


Jarek Zgoda wrote:
> rodmc 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.

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/




More information about the Python-list mailing list