LWP::UserAgent Change socket attributes

2020-05-29 Thread Bernard CLABOTS via libwww
Hi All,    I'm really new to perl and as usual in our business world I have to be productive while I still learn.    I'm running checks in IOT over REST API's and I saw that my script using the LWP::UserAgent::Determined is generating loads of useless syn in case of outages: If I have a small

Set a wrong Content-Length with LWP

2019-01-30 Thread Octavian Rasnita
Hi all, Does anyone know if it is possible to set a wrong Content-Length with LWP? Or if not, then how can we do it? The following corrects it and sets it to "Content-length: 5": $ua->post( $url, 'Content-Length' => 3, Content => '12345' ); The following also does the

Re: Use LWP to access gmail messages

2018-05-13 Thread Daniel Wright
An alternate solution if you want to be able to manage your email using all of the gmail specific features would be to use their API: https://developers.google.com/gmail/api/v1/reference/ In which case, you might want to take a look at

Re: Use LWP to access gmail messages

2018-05-12 Thread Shlomi Fish
Hi A! Please reply to list if it's a mailing list post - http://shlom.in/reply . On Fri, 11 May 2018 20:47:19 - "Alicourant KOTE" <ali.k...@orange.sn> wrote: > Hi everybody, > > I am new to perl but think I love it. > > How can I use LWP to access the goo

Re: Use LWP to access gmail messages

2018-05-12 Thread David Pottage
On 11/05/18 21:47, Alicourant KOTE wrote: Hi everybody, I am new to perl but think I love it. How can I use LWP to access the google mail web page, select uread messages and display them directly in the gmail? I do not want to save them somewhere. Just make gmail display the unread

Use LWP to access gmail messages

2018-05-11 Thread Alicourant KOTE
Hi everybody, I am new to perl but think I love it. How can I use LWP to access the google mail web page, select uread messages and display them directly in the gmail? I do not want to save them somewhere. Just make gmail display the unread messages. Here are steps: 1. Run Google

LWP small fix required

2017-02-02 Thread Ivan Ladygin
LWP Digest authorisation small bag, in case response contents 2 (or more) fields WWW-Authentificate like this: /Server: Apache-Coyote/1.1// //Vary: Accept-Encoding// //WWW-Authenticate: Digest realm="1Realm", qop="auth", nonce="1485848015167:56976:56060fb913a12670c

Re: LWP hangs forever with get

2014-06-01 Thread Steffen Ullrich
READ: { die read timeout unless $self-can_read; my $n = $self-sysread($_, 1024, length); unless (defined $n) { redo READ if $!{EINTR} || $!{EAGAIN}; The server makes a connection reset if you try to access

LWP hangs forever with get

2014-05-21 Thread Jesper Persson
- use LWP::Simple; $contents = get(https://www.butler.edu/boa/default.aspx;); - the perl process never returns. lwp version: VERSION: 6.06 Summary of my perl5 (revision 5 version 18 subversion 2) configuration: Platform: osname=MSWin32, osvers=6.2

Re: LWP hangs forever with get

2014-05-21 Thread Daniel de Oliveira Mantovani
Hi, Jesper. It's happen because it should happen. You don't have the error because you are not handle error. This happen because LWP has a timeout to wait the server response, after this timeout it will return a timeout error. In your case, you don't handle the error the only stuff you get

Re: LWP hangs forever with get

2014-05-21 Thread Tom Hukins
On Wed, May 21, 2014 at 06:57:58PM +0200, Jesper Persson wrote: this perl code -- use LWP::Simple qw($ua get); $ua-timeout(5); $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0; $contents = get(https://www.butler.edu/boa/default.aspx

Re: LWP::Protocol::https v6.06 not latest in via cpan command?

2014-05-05 Thread Michiel Beijen
Hi, On Wed, Apr 30, 2014 at 5:08 PM, Tim Hoke th...@northpeak.org wrote: I was working on updating libwww-perl and found that when I had done a cpan install of LWP::Protocol::https, I got version 6.04. I didn't get version 6.06 Mike recently released. Is there something that needs

LWP::Protocol::https v6.06 not latest in via cpan command?

2014-05-02 Thread Tim Hoke
I was working on updating libwww-perl and found that when I had done a cpan install of LWP::Protocol::https, I got version 6.04. I didn't get version 6.06 Mike recently released. Is there something that needs to be indexed? $ cpan -D LWP::UserAgent LWP::Protocol::https --8 snip 8-- Database

Re: Timeout in LWP::Protocol::http

2014-03-07 Thread Michiel Beijen
Hi Vladimir, On Fri, Mar 7, 2014 at 8:48 AM, Vladimir Levijev vladimir.levi...@gmail.com wrote: We need to specify io_socket_timeout option (10 seconds is too small for us) in /usr/share/perl5/LWP/Protocol/http.pm . Do you know of any way to accomplish that? It's easy: my $ua = new LWP

Timeout in LWP::Protocol::http

2014-03-06 Thread Vladimir Levijev
Hi, We need to specify io_socket_timeout option (10 seconds is too small for us) in /usr/share/perl5/LWP/Protocol/http.pm . Do you know of any way to accomplish that? Cheers, VL

Perl, LWP and HTTPS

2013-10-10 Thread Alastair Mackenzie
Hi. I'd like to use Perl to access some web sites. I've been reading 'Perl LWP' --- which has been very helpful and seems to make sense --- and now I'd like to get on with some scripting. However, I've run into a bit of a problem. The main URL that I'm interested in accessing uses

Re: Perl, LWP and HTTPS --- Problem solved

2013-10-10 Thread Alastair Mackenzie
Message - From: Alastair Mackenzie To: libwww@perl.org Sent: 09 October 2013 22:46 Subject: Perl, LWP and HTTPS Hi. I'd like to use Perl to access some web sites. I've been reading 'Perl LWP' --- which has been very helpful and seems to make sense --- and now I'd like to get

Re: Perl, LWP and HTTPS

2013-10-10 Thread Shlomi Fish
On Wed, 9 Oct 2013 22:46:36 +0100 Alastair Mackenzie alast...@batmail.co.uk wrote: Hi. I'd like to use Perl to access some web sites. I've been reading 'Perl LWP' --- which has been very helpful and seems to make sense --- and now I'd like to get on with some scripting. However, I've run

Re: Access to x509 certificate using LWP?

2013-03-01 Thread Sebastien Koechlin
It's not the most beautiful thing in the world, but you can get access to the certificate data in the SSL_verify_callback. It gets called for each certificate in the chain, starting from the root cert. Here's a basic example: use strict; use warnings; use LWP::UserAgent; my

Trying to diagnose a LWP on FreeBSD (8.x) issue

2013-03-01 Thread Philip Kizer
I tried mailing the maintainer but no response there has led me to a bit more public forum. Using any perl 5.8 (since I really don't have older except for one system about to be upgraded, they're mostly 5.12 for me right now) and LWP 6.04, I see the following behaviour that can be tested

Re: Trying to diagnose a LWP on FreeBSD (8.x) issue

2013-03-01 Thread Victor Efimov
Same behaviour, truncated output on Ubuntu 10.04 Perl 5.10 LWP 6.04 2013/3/2 Philip Kizer pcki...@nostrum.com: I tried mailing the maintainer but no response there has led me to a bit more public forum. Using any perl 5.8 (since I really don't have older except for one system about

Re: Trying to diagnose a LWP on FreeBSD (8.x) issue

2013-03-01 Thread Philip Kizer
2013/3/2 Philip Kizer pcki...@nostrum.com: I tried mailing the maintainer but no response there has led me to a bit more public forum. And just to be explicit, the maintainer I mailed was the FreeBSD LWP port maintainer, the lack of response is why I'm branching out to this list now

Re: Trying to diagnose a LWP on FreeBSD (8.x) issue

2013-03-01 Thread Victor Efimov
with cURL 2013/3/2 Philip Kizer pcki...@nostrum.com: 2013/3/2 Philip Kizer pcki...@nostrum.com: I tried mailing the maintainer but no response there has led me to a bit more public forum. And just to be explicit, the maintainer I mailed was the FreeBSD LWP port maintainer, the lack of response

Re: Trying to diagnose a LWP on FreeBSD (8.x) issue

2013-03-01 Thread Victor Efimov
forum. And just to be explicit, the maintainer I mailed was the FreeBSD LWP port maintainer, the lack of response is why I'm branching out to this list now. On 2013, Mar 01, at 15:59, Victor Efimov vic...@vsespb.ru wrote: Same behaviour, truncated output on Ubuntu 10.04 Perl 5.10 LWP 6.04

Re: Trying to diagnose a LWP on FreeBSD (8.x) issue

2013-03-01 Thread Philip Kizer
On 2013, Mar 01, at 16:39, Victor Efimov vic...@vsespb.ru wrote: seems known bug https://github.com/libwww-perl/http-message/issues/3 Bingo, my Google-fu was weak, thanks for the pointer. -p

Re: Access to x509 certificate using LWP?

2013-02-28 Thread Sebastien Koechlin
and report a WARNING if the expiration date is in few weeks. Is there any way to access the certificat sent by the remote server using LWP? I think you can not do that via LWP, but you could use http://search.cpan.org/~hirose/Net-SSL-ExpireDate-1.10/lib/Net/SSL/ExpireDate.pm I find

Re: Access to x509 certificate using LWP?

2013-02-28 Thread Philip Kizer
On 2013, Feb 27, at 10:37, Sebastien Koechlin seb.p...@koocotte.org wrote: I'm using a Perl script to monitor many webservers. I do a request on a page using LWP, check header and content, and print the result (OK/WARNING/ERROR). For https; I would like to also check the certificat expiration

Re: Access to x509 certificate using LWP?

2013-02-28 Thread Graham Knop
On 2/27/13 11:37 AM, Sebastien Koechlin wrote: Hello! I'm using a Perl script to monitor many webservers. I do a request on a page using LWP, check header and content, and print the result (OK/WARNING/ERROR). For https; I would like to also check the certificat expiration date and report

Access to x509 certificate using LWP?

2013-02-27 Thread Sebastien Koechlin
Hello! I'm using a Perl script to monitor many webservers. I do a request on a page using LWP, check header and content, and print the result (OK/WARNING/ERROR). For https; I would like to also check the certificat expiration date and report a WARNING if the expiration date is in few weeks

Re: Access to x509 certificate using LWP?

2013-02-27 Thread Michiel Beijen
LWP? I think you can not do that via LWP, but you could use http://search.cpan.org/~hirose/Net-SSL-ExpireDate-1.10/lib/Net/SSL/ExpireDate.pm -- Mike

Re: Access to x509 certificate using LWP?

2013-02-27 Thread Dirk-Willem van Gulik
to access the certificat sent by the remote server using LWP? I think you can not do that via LWP, but you could use http://search.cpan.org/~hirose/Net-SSL-ExpireDate-1.10/lib/Net/SSL/ExpireDate.pm I find that using (and parsing) the output of openssl s_client openssl s_client

Re: LWP::UserAgent hangs on a hung http server

2012-12-09 Thread Adam Sjøgren
On Sat, 08 Dec 2012 22:33:16 +0200, Meir wrote: Yes indeed! Odd! It must be something in my environment. What versions of Perl and the modules are you using? Best regards, Adam -- I love loopholes. Adam Sjøgren

LWP::UserAgent hangs on a hung http server

2012-12-08 Thread Meir Guttman
Dear web perlers, I encountered a web page that consistently hangs, no matter what browsing agent is used, IE, Firefox and (this is my problem) LWP::UserAgent (ua). This page is at http://www.tase.co.il/TASEEng/MarketData/Indices/Additional/IndexHistoryData .htm?Action=1addTab=IndexId=166, when

Re: LWP::UserAgent hangs on a hung http server

2012-12-08 Thread Adam Sjøgren
On Sat, 08 Dec 2012 21:15:19 +0200, Meir wrote: The problem is that when I am using ua, it hangs too, forever, and never times-out! A ^C is then required to abort it. What did you set -timeout() on your LWP::UserAgent object to? ,[ perldoc LWP::UserAgent ] | NAME |LWP::UserAgent

RE: LWP::UserAgent hangs on a hung http server

2012-12-08 Thread Meir Guttman
Dear adam, Thank you for your prompt reply. Please see below. Meir -Original Message- From: Adam Sjøgren [mailto:a...@koldfront.dk] Sent: שבת 08 דצמבר 2012 21:30 To: libwww@perl.org Subject: Re: LWP::UserAgent hangs on a hung http server On Sat, 08 Dec 2012 21:15:19 +0200

Re: LWP::UserAgent hangs on a hung http server

2012-12-08 Thread Adam Sjøgren
2012 $ This is with: $ perl --version | grep version This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-gnu-thread-multi $ pmvers LWP::UserAgent 6.04 $ pmvers WWW::Mechanize 1.71 $ On a Debian sid machine. I get the same thing on a Debian squeeze (stable

RE: LWP::UserAgent hangs on a hung http server

2012-12-08 Thread Meir Guttman
-Original Message- From: Adam Sjøgren [mailto:a...@koldfront.dk] Sent: שבת 08 דצמבר 2012 22:25 To: libwww@perl.org Subject: Re: LWP::UserAgent hangs on a hung http server On Sat, 08 Dec 2012 22:10:06 +0200, Meir wrote: For as long as I waited. Twenty minutes even. Odd. Yes

Problem with LWP, SSL and ClientAuth

2012-06-07 Thread Arshad Noor
I have small problem that appears to be related to the LWP module even though I'm using SOAPLite. I'm new to Perl, so figuring this out has been difficult. I've documented the problem at the following URL, but have not heard from anyone yet on that forum. http://tech.groups.yahoo.com/group

Re: Problem with LWP, SSL and ClientAuth

2012-06-07 Thread Mark Allen
I've hit this bug a bunch myself.   The basic issue is that there are two different implementations of the SSL guts that LWP may use. One old one based on Net:SSL (which comes from a virtually unmaintained module called Crypt::SSLeay) and a modern one based on IO::Socket::SSL.  By default, LWP

Handlers in LWP::UserAgent subclasses

2012-03-31 Thread Aaron Crane
Is it considered acceptable for a subclass of LWP::UserAgent to invent a new phase name, and process handlers for that phase in new and/or overridden methods? If so, are there any naming recommendations that are likely to avoid conflicts with phases added in future versions of LWP::UA

LWP::Simple, get and getstore() cannot get same page as browser.

2011-06-21 Thread Gary Yang
below to retrieve page and save it at found_it.html. However, I cannot find any “offer-listing” in it. The page generated by get / getstore is different than the browser with the same URL. What did I miss? Can someone help? #!/usr/bin/perl -w use strict; use LWP::Simple; my $link = http

Re: LWP::Simple, get and getstore() cannot get same page as browser.

2011-06-21 Thread Rob Dixon
-Levine/dp/1567651151 I use the script below to retrieve page and save it at found_it.html. However, I cannot find any “offer-listing” in it. The page generated by get / getstore is different than the browser with the same URL. What did I miss? Can someone help? #!/usr/bin/perl -w use strict; use LWP

LWP post cannot get result page. LWP post did not send correct form data.

2011-06-14 Thread Gary Yang
I have been trying to learn LWP Post, by going through an examples on the web. Perl LWP. I try to search AbeBooks for the book Codex Seraphinianus from the main page (AbeBooks). Below is the code that I am using. But this just sends me back the content of the search page not the result page

Re: LWP post cannot get result page. LWP post did not send correct form data.

2011-06-14 Thread Rob Dixon
On 14/06/2011 09:11, Gary Yang wrote: I have been trying to learn LWP Post, by going through an examples on the web. Perl LWP. I try to search AbeBooks for the book Codex Seraphinianus from the main page (AbeBooks). Below is the code that I am using. But this just sends me back the content

Re: LWP post cannot get result page. LWP post did not send correct form data.

2011-06-14 Thread Gary Yang
Rob, When I changed url to 'http://www.abebooks.com/servlet/SearchResults', I got “302 Moved Temporarily”. What did I miss? Can you please copy and paste the code below and try? Will it work for you? #!/usr/bin/perl -w use strict; use LWP; my $browser = LWP::UserAgent-new; my $response

Re: LWP post cannot get result page. LWP post did not send correct form data.

2011-06-14 Thread Sylvain Thibault
Gary, To enable post redirect to the new location, just add the following: my $browser = LWP::UserAgent-new; push @{$browser-requests_redirectable}, 'POST'; The redirect is a GET request to the following URL: http://www.abebooks.com/servlet/SearchResults?sts=ttn=Codex+Seraphinianus

Re: LWP post cannot get result page. LWP post did not send correct form data.

2011-06-14 Thread Gary Yang
Sylvain, Wow, problem solved. Thank you very much! Gary --- On Tue, 6/14/11, Sylvain Thibault sylva...@comcast.net wrote: From: Sylvain Thibault sylva...@comcast.net Subject: Re: LWP post cannot get result page. LWP post did not send correct form data. To: Gary Yang garyya

LWP post, Cannot get result page

2011-06-13 Thread Gary Yang
I have been trying to learn LWP Post, by going through an examples on the web. Perl LWP. I try to search AbeBooks for the book Codex Seraphinianus from the main page (AbeBooks). Here is the code that I am using: #!/usr/bin/perl -w use strict; use LWP my $cookie_jar = HTTP::Cookies-new

Re: LWP post, Cannot get result page

2011-06-13 Thread Gary Yang
/SearchEntry tabindex=15 title=More Search OptionsMore Search Options/a /td /tr /table/form --- On Mon, 6/13/11, Gary Yang garyya...@yahoo.com wrote: From: Gary Yang garyya...@yahoo.com Subject: LWP post, Cannot get result page To: libwww

Re: LWP post, Cannot get result page

2011-06-13 Thread sylvaint
use $browser-post(...) instead of -get. -Original Message- From: Gary Yang Sent: Monday, June 13, 2011 8:36 PM To: libwww@perl.org Subject: LWP post, Cannot get result page I have been trying to learn LWP Post, by going through an examples on the web. Perl LWP. I try to search

Re: LWP::UserAgent::__need_proxy alters the HTTP::Request (breaks changes by LWP::UserAgent::proxy

2011-04-09 Thread Gisle Aas
configuration. When a HTTP::Request is made through an LWP::UserAgent with a proxy configured the HTTP::Request is changed by LWP::UserAgent::__need_proxy: sub _need_proxy { ... $req-{proxy} = $HTTP::URI_CLASS-new($proxy); } proxy is not a documented attribute of the HTTP

LWP::UserAgent::FramesReady installation on debian lenny

2011-04-08 Thread amel kapetanovic
He every one, Could please someone help me ? I have a problem for installation of LWP::UserAgent::FramesReady on debian lenny. When I try to do it through cpan, see what happens : cpan[1] install LWP::UserAgent::FramesReady CPAN

Re: LWP::UserAgent::FramesReady installation on debian lenny

2011-04-08 Thread Nicholas Bamber
want to try creating one and running the build process manually. You may then hit more issues of course. On 08/04/11 20:27, amel kapetanovic wrote: He every one, Could please someone help me ? I have a problem for installation of LWP::UserAgent::FramesReady on debian lenny. When I try to do

LWP::UserAgent::__need_proxy alters the HTTP::Request (breaks changes by LWP::UserAgent::proxy

2011-04-08 Thread Bradley Dean
Greetings, I've been looking at what feels to me like a bug with the handling of proxy configuration. When a HTTP::Request is made through an LWP::UserAgent with a proxy configured the HTTP::Request is changed by LWP::UserAgent::__need_proxy: sub _need_proxy { ... $req-{proxy

namespacing for LWP::UserAgent subclasses

2011-03-17 Thread Tim Brody
Hi All, I've written a couple of LWP::UserAgent sub-classes that add signing for Amazon S3 OAuth. I realise there are existing modules that cover the whole scope of these protocols but I rarely need all that weight - I just need something to add the (tricky to get right) signature bits

LWP 6 requires 5.8.8

2011-03-13 Thread Father Chrysostomos
I notice that the new LWP 6 requires perl 5.8.8. I tried changing the requirement in the Makefiles.PL for the various distributions to 5.008007 manually. All the tests passed in perl 5.8.7.* So would you consider lowering the minimum version? * Except File::Listing and HTTP::Message

LWP caused Out of memory error.

2011-02-12 Thread Bo BY Yang
: --- sub initWebApp { if( $fvt_download == 0 ) { $fvt_download = LWP::UserAgent-new; $fvt_download - agent(FMTFVT_AUTO_TEST/1.0.0 ); } } sub getWebContent { if( scalar(@_) 1 ) { return ; } if( $fvt_download == 0 ) { initWebApp

[PATCH] lwp-request: Add a -E option to display all request and response headers.

2011-02-08 Thread Tony Finch
--- bin/lwp-request | 53 +++-- 1 files changed, 31 insertions(+), 22 deletions(-) Here's a little tweak to lwp-request that makes it more useful to debug odd redirect problems. diff --git a/bin/lwp-request b/bin/lwp-request index a8ba81a

LWP::UserAgent in Perl 5.8

2011-01-21 Thread Mani, Krithika
Hi, I am trying to use LWP::UserAgent class in a perl script . The version of perl is 5.8.4 . But while running the script I am getting an error Can't locate LWP/UserAgent.pm in @INC . Could you please let me know the exact library which needs to be installed so that I can use the LWP class

Re: LWP::UserAgent in Perl 5.8

2011-01-21 Thread Rob Dixon
On 21/01/2011 07:27, Mani, Krithika wrote: Hi, I am trying to use LWP::UserAgent class in a perl script . The version of perl is 5.8.4 . But while running the script I am getting an error Can't locate LWP/UserAgent.pm in @INC. Could you please let me know the exact library which needs

Re: Error when LWP, WxPerl and version.pm are used together

2010-12-06 Thread Octavian Rasnita
From: John Peacock john.peac...@havurah-software.org ... - instead of use version; I use use version();. The sole difference between those two call is the former implicitly calls the version::import. And there are only two methods exported by default: qv() and UNIVERSAL::VERSION. As you

Error when LWP, WxPerl and version.pm are used together

2010-12-05 Thread Octavian Rasnita
Hi, Here below I added a sample program that gives an error if WxPerl, LWP and version.pm are used together. The program works fine if either - With Wx::Locale I use the language id 56 (for English) instead of 155 (for Romanian) or - instead of use version; I use use version();. The first

Re: Error when LWP, WxPerl and version.pm are used together

2010-12-05 Thread John Peacock
On 12/05/2010 04:36 AM, Octavian Rasnita wrote: Hi, Here below I added a sample program that gives an error if WxPerl, LWP and version.pm are used together. I don't see any evidence by quickly looking over the respective sources that either WxPerl or LWP use the version.pm module at all

Re: Sudden problems with LWP::UserAgent

2010-11-01 Thread Uday Bhaskar
a lot for your help. Thanks Uday On Wed, Oct 27, 2010 at 10:08 PM, Keary Suska hieroph...@pcisys.net wrote: On Oct 27, 2010, at 1:15 AM, Uday Bhaskar wrote: I guess this is more a question of how to get around a website blocking LWP::UserAgent. I have been using this code for a while now snip

Sudden problems with LWP::UserAgent

2010-10-27 Thread Uday Bhaskar
[cross post from perlmonks] Hi, I guess this is more a question of how to get around a website blocking LWP::UserAgent. I have been using this code for a while now #!/usr/bin/perl -w use diagnostics; use strict; use LWP; use Date::Manip; use HTTP::Cookies; use URI; my $cookie_jar; $cookie_jar

Re: Sudden problems with LWP::UserAgent

2010-10-27 Thread Uday Bhaskar
, Uday Bhaskar wrote: I guess this is more a question of how to get around a website blocking LWP::UserAgent. I have been using this code for a while now snip This code worked till yesterday. However today I am hitting the 403 error. error in getting index 403 Forbidden try again... I used

Re: LWP::Protocol::file is tripped up by a bug in -e

2010-08-23 Thread Father Chrysostomos
of the encoding. So it almost always ends up with the UTF8 flag on. --Gisle On Sun, Aug 15, 2010 at 23:14, Father Chrysostomos spr...@cpan.org wrote: Perl’s -e ignores the internal UTF8 flag. (See http://rt.perl.org/rt3/Ticket/Display.html?id=77242.) LWP::Protocol::file triggers

Re: LWP::Protocol::file is tripped up by a bug in -e

2010-08-22 Thread Gisle Aas
/Display.html?id=77242.) LWP::Protocol::file triggers this bug in this piece of code:    # test file exists and is readable    unless (-e $path) {        return new HTTP::Response HTTP::Status::RC_NOT_FOUND,                                  File `$path' does not exist;    } If you add    $path

LWP::Protocol::file is tripped up by a bug in -e

2010-08-15 Thread Father Chrysostomos
Perl’s -e ignores the internal UTF8 flag. (See http://rt.perl.org/rt3/Ticket/Display.html?id=77242.) LWP::Protocol::file triggers this bug in this piece of code: # test file exists and is readable unless (-e $path) { return new HTTP::Response HTTP::Status::RC_NOT_FOUND

LWP::UserAgent WWW-Authenticate header regular expression does not match RFC

2010-07-15 Thread John Eaglesham
All, I noticed the scheme regular expression in LWP::UserAgent used to match the authentication scheme sent in a WWW-Authenticate header does not match the RFC's list of allowed characters for this field. RFC2617 uses the type token from RFC2616, which includes several characters

How LWP useragent gets file in multiple parts

2010-06-18 Thread perl
hai people, i have been trying to understand the http::responce when i got a file to download .. i know it will download in a single stream i need to find to know that weather it can be done in multiple ways in perl to download the file . i know curl ,aria2 and others have that

Re: [PATCH] LWP::UserAgent add support for URI with embedded userinfo

2010-03-24 Thread Philippe Bruhat (BooK)
On Tue, Mar 23, 2010 at 09:15:47PM +0100, Gisle Aas wrote: On Tue, Mar 23, 2010 at 10:43, Philippe Bruhat (BooK) b...@cpan.org wrote: ---  lib/LWP/UserAgent.pm |    1 +  1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/LWP/UserAgent.pm b/lib/LWP/UserAgent.pm index

Re: [PATCH] LWP::UserAgent add support for URI with embedded userinfo

2010-03-24 Thread Philippe Bruhat (BooK)
https and maybe Crypt::SSLeay wasn't installed with the perl I was using. Actually, the issue was a bit more complicated (a VPN that my usual browser bypasses through a tunnel and a SOCKS proxy). But testing would have make it clear. :-/ Now installing LWP::Protocol::socks. -- Philippe Bruhat

[PATCH] LWP::UserAgent add support for URI with embedded userinfo

2010-03-23 Thread Philippe Bruhat (BooK)
Signed-off-by: Philippe Bruhat (BooK) b...@cpan.org --- lib/LWP/UserAgent.pm |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/LWP/UserAgent.pm b/lib/LWP/UserAgent.pm index a54782c..7757126 100644 --- a/lib/LWP/UserAgent.pm +++ b/lib/LWP/UserAgent.pm @@ -572,6 +572,7

Re: [PATCH] LWP::UserAgent add support for URI with embedded userinfo

2010-03-23 Thread Gisle Aas
On Tue, Mar 23, 2010 at 10:43, Philippe Bruhat (BooK) b...@cpan.org wrote: ---  lib/LWP/UserAgent.pm |    1 +  1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/LWP/UserAgent.pm b/lib/LWP/UserAgent.pm index a54782c..7757126 100644 --- a/lib/LWP/UserAgent.pm +++ b/lib/LWP

Re: Problem with LWP and proxy under Cygwin

2010-02-25 Thread Tom Hukins
On Wed, Feb 24, 2010 at 10:28:03PM -0800, cr...@animalhead.com wrote: I'm new to this mailing list, and haven't yet found where y'all keep the good documentation about dealing with an authenticating proxy using LWP::UserAgent. In this case it's the LWP cookbook: http://search.cpan.org/~gaas

Problem with LWP and proxy under Cygwin

2010-02-24 Thread craig
Hi, I'm new to this mailing list, and haven't yet found where y'all keep the good documentation about dealing with an authenticating proxy using LWP::UserAgent. I have modeled a subclass approach on Gisle Aas' lwp-request. You can see the complete script at http://www.animalhead.com

LWP cookies

2010-02-23 Thread Yan Yun-an
code my $ua = new LWP::UserAgent::FramesReady; $ua-agent('Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en- US; rv:1.9.2) Gecko/20100115 Firefox/3.6'); my $header = HTTP::Headers-new; $header-header(Accept = text/html,application/xhtml +xml,application/xml;q=0.9,*/*;q=0.8

Re: Failures of Net::FTP and LWP during oke testing

2009-11-23 Thread Ilya Zakharevich
/ Cannot list (Illegal PORT command. ): at utils/Math/PariBuild.pm line 319. Can't fetch file with Net::FTP, now trying with LWP::UserAgent... Not in this directory, trying `ftp://megrez.math.u-bordeaux.fr/pub/pari/unix/OLD/'... then it shows that the response via LWP

Failures of Net::FTP and LWP during oke testing

2009-11-12 Thread Ilya Zakharevich
There are many yellow reports for Math::Pari in the smoke test database. They come from failures to download C source code for the library Math::Pari need. Net::FTP and LWP fail (kinda mysteriously); usual `ftp -pinegv' I run for debugging purposes succeeds. The recent versions of Math::Pari

Re: Failures of Net::FTP and LWP during oke testing

2009-11-12 Thread Gisle Aas
C source code for the library Math::Pari need.  Net::FTP and LWP fail (kinda mysteriously); usual `ftp -pinegv' I run for debugging purposes succeeds. The recent versions of Math::Pari have some code to debug these failures; however, the debugging output says nothing to me (IIRC, most

LWP -set_cookie

2009-09-09 Thread Andy Lester
What's goin' on here? #!/usr/bin/perl use HTTP::Cookies; use Data::Dumper; my $cj = HTTP::Cookies-new; $cj-set_cookie( 1, # version 'username',# key 'joe', # value '',# path 'tparsons.co.uk', #

Re: LWP -set_cookie

2009-09-09 Thread Robert G. Werner
Andy Lester wrote: What's goin' on here? #!/usr/bin/perl use HTTP::Cookies; use Data::Dumper; my $cj = HTTP::Cookies-new; $cj-set_cookie( 1, # version 'username',# key 'joe', # value '',# path

Re: LWP -set_cookie

2009-09-09 Thread Andy Lester
On Sep 9, 2009, at 5:42 PM, Robert G. Werner wrote: Looks like the problem is the '' empty string for the path element. When I put in: '/this_is_a_test' instead, it works as expected. Agh, I was checking path spec, not path. Thanks for that. It's tragic that -set_cookie() doesn't throw

lwp + html::treebuilder oddities

2009-08-13 Thread Roman Makurin
Hi All! Im using LWP to get pages and HTML::TreeBuilder to get needed info. Here is basic scheme: $ua = new LWP::UserAgent; $r = $ua-get($url); $html = decode('web_page encoding', $r-content); at this point i have utf8 content in $html. $r = HTML::TreeBuilder-new_from_content($html); $r

Re: question about get function of LWP::Simple (a possible reason)

2009-05-20 Thread The abbot
that is the reason why 'get' function can't work . Does anyone know how to solve it ? best, matt Date: Tue, 19 May 2009 18:14:10 +0800 Subject: Re: question about get function of LWP::Simple From: msmo...@gmail.com To: mathewz...@hotmail.com Everybody: Be careful

Re: question about get function of LWP::Simple (a possible reason)

2009-05-20 Thread Keary Suska
that is the reason why 'get' function can't work . Does anyone know how to solve it ? I am not able to access this URL using other tools, so the problem has to do with the URL. Keary Suska Date: Tue, 19 May 2009 18:14:10 +0800 Subject: Re: question about get function of LWP::Simple From: msmo

RE: question about get function of LWP::Simple (a possible reason)

2009-05-19 Thread zmerry
. Does anyone know how to solve it ? best, matt Date: Tue, 19 May 2009 18:14:10 +0800 Subject: Re: question about get function of LWP::Simple From: msmo...@gmail.com To: mathewz...@hotmail.com Everybody: Be careful. It seems to be a harmful URL

BUG report LWP

2009-05-17 Thread *
When I execute make test, this is the error that I put on DOS-Prompt terminal: mkdir LWP::.: Invalid argument at C:/Perl/lib/ExtUtils/Install.pm line 455 Follow there is the complete shell output. Best Regards

Fwd: perl-LWP-Parallel-2.57-alt1.1: i586 rebuild failed

2008-10-12 Thread Alexey Tourbin
Recent libwww-perl versions break ParallelUserAgent-2.57. - Forwarded message from QA Team Robot [EMAIL PROTECTED] - Package: perl-LWP-Parallel-2.57-alt1.1 Packager: Alexey Tourbin [EMAIL PROTECTED] Build Statistics: 3 time(s) (last time: Thu Apr 15 2004) by Alexey Tourbin [EMAIL

Using LWP module in perl with Crypt::SSLeay

2008-09-18 Thread Kathalkar, Sanket
Hi, I am going to use LWP module for accessing urls which are SSL enabled. Is Crypt::SSLeay required for this? Give me the steps to impement this. Do I need to create a certificate to access a remote server? Thanks and Regards, Sanket Kathalkar

Re: Using LWP module in perl with Crypt::SSLeay

2008-09-18 Thread Tom Hukins
On Thu, Sep 18, 2008 at 08:22:46AM -0400, Kathalkar, Sanket wrote: I am going to use LWP module for accessing urls which are SSL enabled. Is Crypt::SSLeay required for this? The README.SSL distributed with LWP answers this: http://search.cpan.org/src/GAAS/libwww-perl-5.814/README.SSL Do I

Re: LWP content encode

2008-09-15 Thread Bjoern Hoehrmann
* stefano tacconi wrote: I'm writing a simple script to download some web pages on the net. Using LWP it's works fine, but how can I get html page with strange characher? You are probably looking for HTML::Encoding, the script in the synopsis shows how to decode the content; HTTP::Response

LWP content encode

2008-09-15 Thread stefano tacconi
Hi List, I'm writing a simple script to download some web pages on the net. Using LWP it's works fine, but how can I get html page with strange characher? For example LWP doesn't get page with on-demand†string (on-demand%C3%A2%C2%80%C2%9D). I tried in vain with Encode, HTTP::Response

[rt.cpan.org #37148] Bug in LWP::RobotUA - Robot UA could access forbidden documents if clock is going wrong

2008-06-27 Thread Matthias Jaekle via RT
Thu Jun 26 18:50:49 2008: Request 37148 was acted upon. Transaction: Ticket created by [EMAIL PROTECTED] Queue: libwww-perl Subject: Bug in LWP::RobotUA - Robot UA could access forbidden documents if clock is going wrong Broken in: (no value) Severity: (no value) Owner

Script using LWP suddenly not working...

2008-06-10 Thread Rob Kunkle
Hello - I've been using LWP to connect to a https server and pull some information. This worked fine in the past, but recently I've been getting the 'client-ssl-warning' = 'Peer certificate not verified', error. I've looked around on the web to find some answers, but mainly I find

Script using LWP suddenly not working...

2008-06-10 Thread Rob Kunkle
Hello - I've been using LWP to connect to a https server and pull some information. This worked fine in the past, but recently I've been getting the 'client-ssl-warning' = 'Peer certificate not verified', error. I've looked around on the web to find some answers, but mainly I find

Re: Script using LWP suddenly not working...

2008-06-10 Thread Bill Moseley
On Tue, Jun 10, 2008 at 05:12:36AM -0700, Rob Kunkle wrote: I think that I need to set the: $ENV{HTTPS_CA_FILE} = some_file; variable of SSLeay, but I'm not sure what it should be set to. http://search.cpan.org/~dland/Crypt-SSLeay-0.57/SSLeay.pm#ENVIRONMENT_VARIABLES shows: # CA cert

Use of Crypt::SSLeay Net::SSL with perl's LWP

2008-04-22 Thread Balkrishna Darji
Hi, Please provide me with sample files to learn the use of the above modules. Thanks! Regards, Balkrishna Legal Disclaimer: This electronic message and all contents contain information from Cybage Software Private Limited which may be privileged, confidential, or otherwise

Re: glibc errors when using LWP and threads

2008-03-19 Thread Gisle Aas
I can confirm that I do see similar kind of errors when running your test program here on MacOS. I doubt that LWP is really to blame as it's a pure Perl module which should not be able to do anything wrong at the malloc level unless there is a bug in perl (or perhaps the threads module

  1   2   3   4   5   6   7   8   9   >