opening a URL
Hi, can anyone help?
Can anyone tell me if there's a simple way to open URL's for input without the use of LWP or other modules??
Phil
Hi, can anyone help?
Can anyone tell me if there's a simple way to open URL's for input without the use of LWP or other modules??
Phil
Orpheus posted this at 23:23 — 2nd October 2000.
They have: 568 posts
Joined: Nov 1999
Define "for input"
Flip posted this at 09:03 — 3rd October 2000.
They have: 3 posts
Joined: Oct 2000
I mean, to read the contents of a URL into perl.
...any advice?
Orpheus posted this at 00:23 — 4th October 2000.
They have: 568 posts
Joined: Nov 1999
#!/usr/bin/perl
print "Content-type: text/html\n\n";
use LWP::Simple;
$url = "http://www.slashdot.org";
$url_contents = get($url);
print $url_contents;
roBofh posted this at 01:30 — 4th October 2000.
They have: 122 posts
Joined: Jun 2000
I supposed you could use wget, lynx or something other program, or possibly just connect via sockets and do GET $webpage HTTP/1.0.
Rob Radez
OSInvestor.com
Flip posted this at 19:02 — 4th October 2000.
They have: 3 posts
Joined: Oct 2000
Cheers guys,
hadn't heard of wget before, but it seems to do the job.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.