RSS
Home
|
Link Us
|
Contact
Categories
-- All --
Perl
PHP
MySQL
Windows
JavaScript
HTML
Apache
CVS
Linux
SEO
Perl (9)
PHP (35)
MySQL (5)
Windows (7)
JavaScript (5)
HTML (6)
Apache (6)
CVS (4)
Linux (13)
SEO (11)
The registration is temporarily disabled.
However you can post your comments without registration.
Authentication
Username:
Password:
Register
|
Lost password
-->
Fetch URL with Perl
Home
»
Perl
»
Fetch URL with Perl
Date: 2007-06-05
How to fetch remote URL with Perl using LWP::UserAgent
Download
|
Printer Friendly
Add to Google
Add to Del.icio.us
Add to Digg
Add to Technorati
Add to Yahoo!
Add to Blinklist
Add to Furl
Add to reddit
#!/usr/bin/perl use Data::Dumper; require HTTP::Request; require LWP::UserAgent; $request = HTTP::Request->new(GET => 'http://google.com/'); $ua = LWP::UserAgent->new; $response = $ua->request($request); print $response->as_string(); src: http://cpan.uwinnipeg.ca/htdocs/libwww-perl/HTTP/Request.html
Comments
No comments yet.
Post a comment
Your Name
Your Email
(won't be published)
Site
(e.g. http://)
*
Title
*
Comment
*
Required fields.
Copyright © 2005-2008
Execution time: 0.07721
hosted by
1and1