lwp Questions

4

Solved

I am using LWP to download content from web pages, and I would like to limit the amount of time it waits for a page. This is accomplished in LWP like this: my $ua = LWP::UserAgent->new; $ua->...
Leisure asked 12/6, 2012 at 2:13

5

Solved

I have a lot of scripts, most of them based around WWW::Mechanize that scrape data off of misc hardware that is accessible via HTTPs. After upgrading most of my perl installation and its modules, a...
Aras asked 14/11, 2012 at 19:24

4

I created a Perl script to run an https task. When I run it I get the error LWP::Protocol::https not installed. I cannot figure out, or find a tutorial or command on how exactly to install LWP::Pro...
Isleana asked 14/1, 2014 at 20:44

3

Solved

use LWP::UserAgent; use Data::Dumper; my $ua = new LWP::UserAgent; $ua->agent("AgentName/0.1 " . $ua->agent); my $req = new HTTP::Request POST => 'http://example.com'; $req->content('p...
Norwich asked 29/6, 2012 at 15:19

8

Solved

I am trying to send sms through Way2sms using Perl LWP. The login part is being successful, after which I save the cookies to a local file. The welcome page after being logged in shows a Send SMS l...
Annisannissa asked 26/8, 2012 at 8:44

2

Solved

When I run the following code: use strict; use warnings; use IO::Socket::SSL; use LWP::UserAgent; my $ua = LWP::UserAgent->new(ssl_opts => { verify_hostname => 0, }); my $res = $ua-&g...
Deranged asked 29/6, 2018 at 22:35

2

Solved

So I am using WWW::Mechanize to crawl sites. It works great, except if I request a url such as: http://www.levi.com/ I am redirected to: http://us.levi.com/home/index.jsp And for my script I...
Olsson asked 6/6, 2012 at 20:49

2

Solved

The Plack suite commonly uses the http://0:port. E.g. the following plackup -MPlack::App::Directory -e 'Plack::App::Directory->new(root=>".");' prints HTTP::Server::PSGI: Accepting connec...
Embarkment asked 6/7, 2015 at 9:51

8

Solved

I have read a number of threads on a number of sites and am still unable to make this work. I have a client machine (OSX) with OpenSSL 0.9.8r running perl 5.12.4, with LWP 6.0.4, updated Crypt::S...
Nonary asked 24/8, 2012 at 20:33

4

Solved

I was trying to connect to a remote host via LWP::UserAgent, but when I was trying to make it work with HTTPS I received a message that LWP::Protocol::https need to be installed. (Perl 5.10.1, C...
Brill asked 25/9, 2013 at 15:42

2

I am trying to create a client connection to an internal ssl site that does not have a certificate and needs to bypass the proxy. I am able to bypass the proxy, and I am able to connect to the si...
Airhead asked 8/4, 2013 at 16:49

2

I'm a new perl programmer trying to convert a curl request into a Perl script get using LWP:UserAgent. The curl request example is: curl -X GET -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Cach...
Mascot asked 27/7, 2016 at 9:37

0

Initial Question I am trying use Perl to make a POST to a remote server. I am using an alarm to set a hard timeout. When the alarm triggers, I am getting what I would consider to be strange behavi...
Ontologism asked 24/2, 2016 at 22:17

8

Solved

How can I get LWP to verify that the certificate of the server I'm connecting to is signed by a trusted authority and issued to the correct host? As far as I can tell, it doesn't even check that th...
Caravansary asked 16/9, 2008 at 16:41

4

Solved

I'm trying to access a protected file. Server is using digest authentication - which I can see from the printed out response. Here is the sample code: use LWP; use strict; my $url = 'http://somes...
Incipient asked 25/11, 2009 at 18:49

5

Am running into an issue connecting on a Ubuntu machine while my other machine works fine. The difference between both is the Ubuntu version and the SSLeay version but i can't narrow down what the ...
Pouliot asked 19/7, 2013 at 22:59

3

I'm porting an application from PHP/cURL to Perl and LWP::UserAgent. I need to do a POST request to a web server and provide a client certificate and key file. The PHP code I'm trying to replicate ...
Unlikelihood asked 2/10, 2012 at 20:5

4

Solved

If you try to login at https://orbit.theplanet.com/Login.aspx?url=/Default.aspx (use any username/password combination), you can see that the login credentials are sent as a non-traditional set of ...
Gurango asked 16/11, 2010 at 21:40

3

I am running the following Perl snippet on Debian using Perl v5.14.2 and libwww-perl v6.04-1 my $ua = LWP::UserAgent->new; my $req = HTTP::Request->new("GET", "https://google.com/"); my $rep...
Kriss asked 15/8, 2013 at 10:2

2

Solved

Im using LWP to download an executable file type and with the response in memory, i am able to hash the file. However how can i save this file on my system? I think i'm on the wrong track with what...
Electropositive asked 6/12, 2012 at 9:42

1

Solved

I have a system that sends data to customers using perl LWP. They can choose their URL and whether to POST or GET. A new customer recently complained that the service doesn't work and they suspect...
Hobnailed asked 27/8, 2014 at 17:18

1

Solved

I am trying to create a script that simply just connect to a website. However, for some reason it will not connect to anything that is using HTTPS. We have a proxy enabled here. However, I believ...
Jilli asked 11/7, 2014 at 14:35

8

Solved

This is my first post on SO, so be gentle. I'm not even sure if this belongs here, but here goes. I want to access some information on one of my personal accounts. The website is poorly written an...
Galvano asked 23/1, 2010 at 20:23

1

Solved

Getting 500 handshaker error:443 over https. The host service I am sending XML to does not support TLS 1.2, they do support 1.0 and 1.1. Currently using LWP 6.03 on CentOS 6. Using the code below t...
Daleth asked 29/11, 2013 at 21:55

1

Solved

I am getting the following error trying to connect to a specific https website using LWP: LWP::Protocol::https::Socket: SSL connect attempt failed with unknown errorerror:14090086:SSL routines:SSL...
Succumb asked 15/10, 2013 at 19:21

© 2022 - 2025 — McMap. All rights reserved.