Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: replacement for LWP::Simple ?

by clintp (Curate)
on May 13, 2002 at 19:35 UTC ( #166257=note: print w/ replies, xml ) Need Help??

in reply to replacement for LWP::Simple ?

Do what everyone else here suggests (install LWP::Simple locally -- you can do it without root permissions it's just tedious) and use this only as a last resort. No warranties are implied. If you ask followup questions on how to use it I'll disavow all knowledge of you and label you a pest. :)

But it will fetch web pages using only the base installation of Perl.

use IO::Socket; use strict; use warnings; my $sock=new IO::Socket::INET( PeerAddr => '', PeerPort => 80, Proto => 'tcp', Type => SOCK_STREAM); die "No socket" unless $sock; print $sock "GET 1.0\n\n"; my $answer=join('', <$sock>);

Comment on Re: replacement for LWP::Simple ?
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2015-11-27 03:04 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (714 votes), past polls