[Zope] Http API Ping

Chris Withers chrisw@nipltd.com
Fri, 12 Oct 2001 14:09:30 +0100

Anthony Baxter wrote:
>   easiest is to embed an invisible 1x1 image in the bottom corner, and
> make it your external URL.

Although technically you do get a broken image on your page if you do this.

>   second easiest is to do the naive urllib.urlopen approach - no timeouts,
> anything like that
>   you could also do this with a timeout - you have to do some of it yourself,
> using select.select - I can post some code for this if you like.

IIRC, there's a timeout module you can import floating aroudn somewhere...