Never mind. I figured it out. Just use LWP::UserAgent's request() function instead of simple_request(). Example:
use LWP::UserAgent;
my $ua = LWP::UserAgent->new;
my $site = $ua->request( new HTTP::Request( 'GET', 'https://www.nodeworks.com' ) );
# Print whatever is returned by...
Hi,
I'm pretty much a n00b with Perl. I'm writing a script that needs to be able to screen scrape pages off the Internet. I've figured out how to GET and POST using LWP::UserAgent's simple_request() function. But I also need to be able to access HTTPS pages, not just HTTP. I'm not sure how to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.