Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

RE: RE: RE: Benevolent Ad Filter

by Anonymous Monk
on Jun 08, 2000 at 16:31 UTC ( [id://17063]=note: print w/replies, xml ) Need Help??


in reply to RE: RE: Benevolent Ad Filter
in thread Benevolent Ad Filter

and close the connection as soon as I have the headers

#!/usr/bin/perl use LWP::Simple; if (head('http://www.foo.com/')) { print "Page exists and would download fine!\n"; }
In list context, head returns all kinds of interesting values such as response code, last modified, content-length etc.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://17063]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2024-07-21 07:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.