Re: [Bulk] Re: Fwd: Re: LWP/Protocol Errors

2015-05-27 Thread Mike Blezien
On 5/27/2015 7:46 AM, Lawrence Statton wrote: On 05/27/2015 07:33 AM, Mike Blezien wrote: *CONNECTED(0003) --- no peer certificate available --- No client certificate CA names sent --- SSL handshake has re

Re: Fwd: Re: LWP/Protocol Errors

2015-05-27 Thread Lawrence Statton
On 05/27/2015 07:33 AM, Mike Blezien wrote: *CONNECTED(0003) --- no peer certificate available --- No client certificate CA names sent --- SSL handshake has read 0 bytes and written 0 bytes --- New, (NONE), Cipher is (NONE) Secure Renegotiation IS NOT supported Compression: NONE Expansion:

Re: Fwd: Re: LWP/Protocol Errors

2015-05-27 Thread Mike Blezien
On 5/25/2015 12:31 PM, Lawrence Statton wrote: I sent this to the list, but it seems to have gotten clogged in the tubes ... here's another copy Forwarded Message Subject: Re: LWP/Protocol E

Re: LWP/Protocol Errors

2015-05-26 Thread Lawrence Statton
On 05/25/2015 12:02 PM, Mike Blezien wrote: Hello *I use same IPN script on other servers without any issues except one. Is it possible that port 443 is being block or not open due a firewall on the server? Another tidbit of information that just burbled to the top of my brain. On SOME plat

Re: LWP/Protocol Errors

2015-05-26 Thread Lawrence Statton
On 05/25/2015 12:02 PM, Mike Blezien wrote: Hello, I recently setup a Paypal IPN script which worked fine for some time now but now all of a sudden I keep getting these error message: * **Can't connect to www.paypal.com:443 (certificate verify failed)** **LWP::Protocol::https::Socket: SSL conn

Re: LWP/Protocol Errors

2015-05-25 Thread Mike Blezien
On 5/25/2015 12:27 PM, Lawrence Statton wrote: On 05/25/2015 12:02 PM, Mike Blezien wrote: Hello *I use same IPN script on other servers without any issues except one. Is it possible that port

Re: LWP/UserAgent fail authentication:

2014-08-01 Thread mimic...@gmail.com
Hi David The LWP::UserAgent docs isn't clear on how it handles the password. Thanks to your input, it's now clear why GitHub auth was failing. As you have noted, "$token:x-oauth-basic" doesn't work. # Basic authorization user name can't contain ':' at /usr/share/perl5/HTTP/Message.pm line 658 I

Re: LWP/UserAgent fail authentication:

2014-07-31 Thread David Precious
On Thu, 31 Jul 2014 17:01:38 +0100 "mimic...@gmail.com" wrote: > I receive error when calling GitHub API from Perl (LWP). Basically, > the problemis authentication failure, although the username and > password combination is valid. > > In the code snippet below, I have tried changing the values

Re: LWP::UserAgent 501 Not Implemented only for https?? [firefox works fine]

2011-10-20 Thread Rajeev Prasad
Hi Gustavo, I tried both, still getting same error. tx. Rajeev From: Gustavo Telly To: Rajeev Prasad Cc: perl list Sent: Thursday, October 20, 2011 11:45 AM Subject: Re: LWP::UserAgent 501 Not Implemented only for https?? [firefox works fine] Hello

Re: LWP::UserAgent 501 Not Implemented only for https?? [firefox works fine]

2011-10-20 Thread Gustavo Telly
Hello Rajeev, Did you try: $ua->protocols_allowed( [ 'http', 'https'] ); or $ua->protocols_allowed(undef); ?? 2011/10/20 Rajeev Prasad > anyone ? plz > > > > here is my script which is trying to access two websites, from my linux > box. i am not able to figure, why am i getting "501 Not I

Re: LWP::UserAgent 501 Not Implemented only for https?? [firefox works fine]

2011-10-20 Thread Rajeev Prasad
anyone ? plz here is my script which is trying to access two websites, from my linux box. i am not able to figure, why am i getting "501 Not Implemented" for any https website. especially when the firefox browser from the same box can access the websites fine using same proxy. proxy does not

Re: LWP::Simple::head($url) -- Return value

2010-10-31 Thread Shawn H Corey
On 10-10-31 07:52 AM, Jatin wrote: 1. From the module's documentation i can understand that the return value of the head() method in a scalar context is TRUE , but what does the value returned by the server which is HTTP::Response=HASH(0x861cd00) signify ? It is a hash reference. See `perldoc

Re: LWP error returned

2010-02-10 Thread Dermot
On 10 February 2010 17:01, Mike Blezien wrote: > > - Original Message - From: "Dermot" > To: "Perl List" > Sent: Wednesday, February 10, 2010 10:14 AM > Subject: Re: LWP error returned > > > On 10 February 2010 15:47, Mike Blezien wrote: >

Re: LWP error returned

2010-02-10 Thread Mike Blezien
- Original Message - From: "Dermot" To: "Perl List" Sent: Wednesday, February 10, 2010 10:14 AM Subject: Re: LWP error returned On 10 February 2010 15:47, Mike Blezien wrote: Hello, I've run into an error while using the LWP module which I haven'

Re: LWP error returned

2010-02-10 Thread Dermot
On 10 February 2010 15:47, Mike Blezien wrote: > Hello, > > I've run into an error while using the LWP module which I haven't come > accross before and was wondering what is means. This is the coding I'm > using: > > -

Re: LWP Select Options Count

2009-05-12 Thread Gunnar Hjalmarsson
Bobby wrote: I'm trying to use LWP to scape a website's content and count the number of options in a select dropdown box and ran into a bit of a stubling block. Below is the code I have so far but it's not getting the desired results for me, could someone help me look through the code and give m

Re: LWP

2009-04-08 Thread John W. Krahn
ANJAN PURKAYASTHA wrote: I have a file stored at a location: http://parent_dir/file Which among gazillion LWP options can I use to download and store the file on my machine? Have you read the LWP cookbook? perldoc lwpcook John -- Those people who think they know everything are a great anno

Re: LWP

2009-04-08 Thread Telemachus
On Wed Apr 08 2009 @ 10:29, Gunnar Hjalmarsson wrote: > Telemachus wrote: >> On Wed Apr 08 2009 @ 3:22, ANJAN PURKAYASTHA wrote: >>> I have a file stored at a location: http://parent_dir/file >>> Which among gazillion LWP options can I use to download and store the file >>> on my machine? >> >>

Re: LWP

2009-04-08 Thread ANJAN PURKAYASTHA
to all, thanks for your prompt replies. You guys are great! Anjan On Wed, Apr 8, 2009 at 4:29 PM, Gunnar Hjalmarsson wrote: > Telemachus wrote: > >> On Wed Apr 08 2009 @ 3:22, ANJAN PURKAYASTHA wrote: >> >>> I have a file stored at a location: http://parent_dir/file >>> Which among gazillion L

Re: LWP

2009-04-08 Thread Gunnar Hjalmarsson
Telemachus wrote: On Wed Apr 08 2009 @ 3:22, ANJAN PURKAYASTHA wrote: I have a file stored at a location: http://parent_dir/file Which among gazillion LWP options can I use to download and store the file on my machine? If you just want to grab the file, you can use LWP::Simple to grab it:

Re: LWP

2009-04-08 Thread Gunnar Hjalmarsson
ANJAN PURKAYASTHA wrote: I have a file stored at a location: http://parent_dir/file Which among gazillion LWP options can I use to download and store the file on my machine? use LWP::Simple; getstore('http://parent_dir/file', 'file'); -- Gunnar Hjalmarsson Email: http://www.gunnar.cc

Re: LWP

2009-04-08 Thread Telemachus
On Wed Apr 08 2009 @ 3:22, ANJAN PURKAYASTHA wrote: > I have a file stored at a location: http://parent_dir/file > Which among gazillion LWP options can I use to download and store the file > on my machine? > TIA > Anjan If you just want to grab the file, you can use LWP::Simple to grab it: us

Re: LWP - HTTP::Request::Common construction

2009-03-19 Thread Dermot
2009/3/19 Dermot : > Hi, > > I can't see what I am doing wrong when I construct a request with > HTTP::Request::Common. I am trying to use the Form-based File-Upload > feature as described at > > http://search.cpan.org/~gaas/libwww-perl-5.825/lib/HTTP/Request/Common.pm > > > Here my code fragment:

Re: LWP getting special (multibyte) characters from webpages

2009-01-09 Thread John Refior
> $response->content gives you the exact byte values returned by > the server; decoded_content turns it into Perl's internal Unicode > representation (assuming the server is telling the truth about what > encoding the page is in). Thanks for the clarification, as I wasn't sure of the difference be

Re: LWP getting special (multibyte) characters from webpages

2009-01-02 Thread Mark Wagner
On Fri, Dec 26, 2008 at 12:03, John Refior wrote: > Hello, > > I am writing Perl scripts that go to webpages, download certain content, > and then create a CSV file with the relevant data. I am trying to be a > friendly web robot, so I am using the LWP::RobotUA module. > my $page = $r

Re: LWP getting special (multibyte) characters from webpages

2008-12-26 Thread John Refior
> The file is already in UTF-8, otherwise it wouldn't display properly > in Firefox or IE. The problem is either your display or perl doesn't > know that the file is in UTF-8. > > The first step is make sure Perl knows it is working with UTF-8. Add > > export PERL_UNICODE=SDL > > to your .profile

Re: LWP getting special (multibyte) characters from webpages

2008-12-26 Thread Chas. Owens
On Fri, Dec 26, 2008 at 15:03, John Refior wrote: snip > The problem I am having is that a number of these webpages have special > multibyte characters on them, such as the trademark symbol and registered > trademark symbol. For example, in the CSV, the trademark (TM) symbol > shows up like > >

Re: LWP::Simple

2008-10-28 Thread John W. Krahn
[EMAIL PROTECTED] wrote: ok I'm pretty much a noob here, so you have to expect some level of stupidity... ;-) I got this script off a site and have spent several hours trying to fix it yet I clearly still do not understand what exactly it is doing. To me it appears to have problems when there i

Re: LWP / HTTP content

2008-10-06 Thread Dermot
2008/10/6 Dermot <[EMAIL PROTECTED]>: > Hi, > > use HTTP::Request::Common qw(POST); > > my $req = POST $url, [user => '[EMAIL PROTECTED]', passwd => > 'B3NzaC1yo7393Cbonx2a1xd562LiCjtYwU7LAb' , contrib => $code]; > That was wrong of me. I should have tested more before I hit send. Of course

Re: LWP and authentication

2008-09-11 Thread ssinn
On Aug 22, 4:48 pm, [EMAIL PROTECTED] (Rob Dixon) wrote: > ssinn wrote: > > > I am currently writing a script that will connect to a URL, > > authenticate itself and GET information to the site. > > I am using this code out of the Perl &LWPbook but it is failing. > > > #!/usr/bin/perl -w > > > use

Re: LWP and authentication

2008-08-22 Thread Rob Dixon
ssinn wrote: > > I am currently writing a script that will connect to a URL, > authenticate itself and GET information to the site. > I am using this code out of the Perl & LWP book but it is failing. > > #!/usr/bin/perl -w > > use strict; > use warnings; > use LWP; > use URI; > > # This authent

Re: LWP module part of the standard distribution ?

2008-08-09 Thread Rob Dixon
Tobias Eichner wrote: > > I wonder if the LWP module is part of the standard distribution of Perl or > not? According the list provided by Module::CoreList it isn't (tested > versions 5.006, 5.008 and 5.010), but it seems that it is widely spread > nevertheless. > > Can I rely upon LWP.pm being a

Re: LWP module part of the standard distribution ?

2008-08-09 Thread Jeff Pang
Tobias Eichner 写道: > I wonder if the LWP module is part of the standard distribution of Perl or > not ? According the list provided by Module::CoreList it isn't (tested > versions 5.006, 5.008 and 5.010), but it seems that it is widely spread > nevertheless. > > Can I rely upon LWP.pm being ava

RE: LWP

2008-07-18 Thread Thomas Bätzler
John Edwards <[EMAIL PROTECTED]> wrote: > Thomas, I will give this a try, however I am unclear on the > 'my $realm' declaration --what exactly am I supposed to put here? > The protected document is protected by Siteminder, where I have > to put in a username/password, once this is done I can access

RE: LWP

2008-07-17 Thread Thomas Bätzler
[EMAIL PROTECTED] <[EMAIL PROTECTED]> asked: > Can someone assist me in modifying the the script below to support the > following: > > 1)define proxy server > 2)the URL being accessed via LWP is protected, so I need to > specify username/passwd combo This is OTTOMH: use LWP::UserAgent; # instea

Re: LWP::Parallel concerns

2008-05-25 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: Maybe I'm wrong, but if I were to use LWP::Parallel to parse a remote site for a few hours, then couldn't this be possibly interpreted as a Denial of Service? And if could be interpreted as a possibly Denial of Service attack, what could I do to possibly avoid it? Do n

Re: lwp & post

2008-02-22 Thread Tom Phoenix
On Fri, Feb 22, 2008 at 10:34 AM, Pat Rice <[EMAIL PROTECTED]> wrote: > I am atempting to get a log in with post, I have loooked in the from and it > uses post, hence using the post to log in, Where I'm confused is when i > print the $response->content I get the orignal page back, but what I wa

Re: LWP - Catching connection timeout

2007-09-25 Thread yitzle
On 9/25/07, Tom Phoenix <[EMAIL PROTECTED]> wrote: > On 9/25/07, yitzle <[EMAIL PROTECTED]> wrote: > > > When a connection timeout occurs, "the library disconnects and creates > > an internal timeout response" [1]. This then exits my script. > > Is there a way to change what occurs on timeout? > >

Re: LWP - Catching connection timeout

2007-09-25 Thread Tom Phoenix
On 9/25/07, yitzle <[EMAIL PROTECTED]> wrote: > When a connection timeout occurs, "the library disconnects and creates > an internal timeout response" [1]. This then exits my script. > Is there a way to change what occurs on timeout? This sounds like an advanced LWP issue. Have you tried asking o

Re: LWP::Authen::Ntlm::authenticate

2007-08-31 Thread iwaim
Hello. [EMAIL PROTECTED] (Michael Gale) wrote: > Hey, > > Has anyone had any luck withNTLMauth with LWP ? I also had the same problem as you. I found a report. #9521: Authentication to IIS 5.0 server fails repeatedly with 401 errors http://rt.cpan.org/Public/Bug/Display.html?id=9521 The

Re: LWP debug

2006-05-03 Thread Peter Scott
On Wed, 03 May 2006 10:16:05 +0200, luis wrote: > Peter Scott wrote: >> >> use LWP::Debug qw(+conns); >> > > Thank you, Peter. That would be great if I knew where to read the STDERR > since I'm running my script from the command line in an out-of-the-box > CentOS linux installation.[...] > >

Re: LWP debug

2006-05-03 Thread luis
Peter Scott wrote: On Tue, 02 May 2006 13:06:56 +0200, luis wrote: the following code is part of a bigger script. I would like to know if there is a way to print out or store into a file all the messages that my script sends to the server, I mean, the full header and data parts sent to the serv

Re: LWP debug

2006-05-02 Thread Peter Scott
On Tue, 02 May 2006 13:06:56 +0200, luis wrote: > the following code is part of a bigger script. I would like to know if > there is a way to print out or store into a file all the messages that > my script sends to the server, I mean, the full header and data parts > sent to the server, in order to

RE: LWP gives garbage characters

2006-04-20 Thread Thomas Bätzler
Hi, tom arnall <[EMAIL PROTECTED]> wrote: > i am trying to spider a site with LWP but get garbage > characters when i do: > > $result = $ua->get($url,%header); > my $page = $res1->content; > > 'lynx' however gives a clean result. It would be helpful to have the URL of the page you

Re: LWP gives garbage characters

2006-04-20 Thread Tom Phoenix
On 4/20/06, tom arnall <[EMAIL PROTECTED]> wrote: > i am trying to spider a site with LWP but get garbage characters These days, that probably means that somebody is using the wrong character set. It might be the site's fault, or yours, or LWP's. > 'lynx' however gives a clean result. Things ar

Re: LWP: How to make sure login was successful

2006-01-09 Thread Peter Scott
On Mon, 09 Jan 2006 23:54:29 +0530, Ankur Gupta wrote: > I am writing a LWP program. > I need to login to 10 different sites and extract information out of them.. > Each site has its own username/password. > > I am writing a common module which will do the job of logging in. > I am doing all sorts

Re: LWP: How to make sure login was successful

2006-01-09 Thread JupiterHost.Net
I also need to make sure the login was successful. Check the response code, if it asks you to login again then you did not login properly. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: LWP package problem

2005-11-18 Thread John Doe
Pine Yan am Freitag, 18. November 2005 03.14: > I did try the following: > > use LWP::UserAgent; > require LWP::UserAgent; > > and they don't help. Since the LWP::UserAgent->new routine is working, I > assume > the package is loaded... Yes it is, one can verify that by chomsky ~ $ perl -le 'use LW

RE: LWP package problem

2005-11-17 Thread Pine Yan
D] Sent: Thursday, November 17, 2005 6:11 PM To: Pine Yan Cc: beginners@perl.org Subject: Re: LWP package problem On Nov 17, Pine Yan said: > #!/home/gnu/bin/perl > > use LWP; > > my $browser = LWP::UserAgent->new; > > my $url = 'http://www.google.com'; > > my

Re: LWP package problem

2005-11-17 Thread Jeff 'japhy' Pinyan
On Nov 17, Pine Yan said: #!/home/gnu/bin/perl use LWP; my $browser = LWP::UserAgent->new; my $url = 'http://www.google.com'; my $response = $browser->get($url); You didn't load the LWP::UserAgent module, though. You loaded LWP, not LWP::UserAgent. -- Jeff "japhy" Pinyan% How

Re: LWP

2005-07-14 Thread Ing. Branislav Gerzo
David Foley [DF], on Thursday, July 14, 2005 at 15:41 (+0100) has on mind: [we don't know]... David, we all get (I think) only 3 pictures in your mail; if you could, stop sending this (pictures). But main problem is we don't get any text, any question in your mail, so we can't answer. Try to fix

Re: lwp beginner question

2005-03-22 Thread Steven Schubiger
On 22 Mar, "José J. Cintrón" wrote: > The script works fine as long as I'm not behind a proxy. As soon as I > get the script behind the proxy where it will reside it ends with a 500 > Exit code. Anyone can provide me any info on how to get the script > working behind a proxy? You may conside

Re: lwp-download

2005-02-25 Thread Todd W
"Benjamin Jeeves" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > I have now used the code below to download the CSV file which it does but the > rest of the script does not get executed e.g. to open the file and read the > data and place it in to it databases are ideas why? >

Re: lwp-download

2005-02-25 Thread Benjamin Jeeves
It is ok now I have it working thank you Ben On Friday 25 February 2005 15:24, Charles K. Clarkson wrote: > Benjamin Jeeves <[EMAIL PROTECTED]> wrote: > : I have a perl program that I have developed that stores some > : numbers in a mysql databases. But I need to make the script go > : to a web si

Re: lwp-download

2005-02-25 Thread Benjamin Jeeves
Hi I have now used the code below to download the CSV file which it does but the rest of the script does not get executed e.g. to open the file and read the data and place it in to it databases are ideas why? use LWP::Simple; $url = "web-server here"; $file = "/home/filename.csv"; $content =

RE: lwp-download

2005-02-25 Thread Charles K. Clarkson
Benjamin Jeeves <[EMAIL PROTECTED]> wrote: : I have a perl program that I have developed that stores some : numbers in a mysql databases. But I need to make the script go : to a web site download a CSV file and the process the data in : that file. I have try lwp-download by using : system("lwp-dow

Re: LWP: Accessing https URL from http proxy unimplemented?

2005-01-31 Thread Ing. Branislav Gerzo
David Garamond [DG], on Monday, January 31, 2005 at 20:58 (+0700) wrote about: >> $ua->proxy(['http', 'https'] => "http://213.46.246.134:80";); DG> I have done the above and the proxy (squid) does support SSL (using DG> CONNECT method), I use it everyday. LWP returns 501 without hitting the DG> p

Re: LWP: Accessing https URL from http proxy unimplemented?

2005-01-31 Thread David Garamond
Ing. Branislav Gerzo wrote: DG> I do have all three modules (Crypt::SSLeay, Net::SSLeay, DG> IO::Socket::Perl) installed, but still can't get https:// through an DG> http proxy. LWP::UserAgent would immediately return a response object DG> with code 501. I can access https:// URLs directly (without

Re: LWP: Accessing https URL from http proxy unimplemented?

2005-01-30 Thread Ing. Branislav Gerzo
David Garamond [DG], on Monday, January 31, 2005 at 11:00 (+0700) contributed this to our collective wisdom: DG> I do have all three modules (Crypt::SSLeay, Net::SSLeay, DG> IO::Socket::Perl) installed, but still can't get https:// through an DG> http proxy. LWP::UserAgent would immediately retur

Re: LWP: Accessing https URL from http proxy unimplemented?

2005-01-30 Thread David Garamond
David Garamond wrote: Peter Scott wrote: In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (David Garamond) writes: Is there an alternative to do this in Perl (without resorting to system "wget ..." or system "curl ...")? See http://search.cpan.org/src/GAAS/libwww-perl-5.803/README.SSL I do have

Re: LWP: Accessing https URL from http proxy unimplemented?

2005-01-30 Thread David Garamond
Peter Scott wrote: In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (David Garamond) writes: Is there an alternative to do this in Perl (without resorting to system "wget ..." or system "curl ...")? See http://search.cpan.org/src/GAAS/libwww-perl-5.803/README.SSL I do have all three modules (Cry

Re: LWP: Accessing https URL from http proxy unimplemented?

2005-01-30 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (David Garamond) writes: >Is there an alternative to do this in Perl (without resorting to system >"wget ..." or system "curl ...")? See http://search.cpan.org/src/GAAS/libwww-perl-5.803/README.SSL -- Peter Scott http://www.perldebugged.com/ **

Re: LWP::UserAgent establishing session CFM

2005-01-02 Thread Jenda Krynicky
From: "Earthlink-m_ryan" <[EMAIL PROTECTED]> > I'm sending a request to an usoft IIS server running colfusion scripts > and am having trouble getting my useragent to establish a session with > the host. i recieve a timed out or session not established 500 server > error from the host. does anyone k

Re: RE: LWP get only img

2004-12-23 Thread mgoland
- Original Message - From: Brian Volk <[EMAIL PROTECTED]> Date: Thursday, December 23, 2004 8:55 am Subject: RE: LWP get only img > Mark, > > Thank you so much for your help, that worked great! It turns out > that I > already had the latest version of HTM

RE: LWP get only img

2004-12-23 Thread Brian Volk
2004 1:22 AM > To: Brian Volk > Cc: Beginners (E-mail) > Subject: Re: LWP get only img > > > > > > - Original Message - > From: Brian Volk <[EMAIL PROTECTED]> > Date: Wednesday, December 22, 2004 12:59 pm > Subject: LWP get only img > > &

Re: LWP get only img

2004-12-22 Thread mgoland
- Original Message - From: Brian Volk <[EMAIL PROTECTED]> Date: Wednesday, December 22, 2004 12:59 pm Subject: LWP get only img > Hi All, Hello > > I have a list of url source files... I need to get a certain " src="from each file. The one thing that separates it from the > other

Re: LWP get_tag('img')

2004-12-09 Thread JupiterHost.Net
Flemming Greve Skovengaard wrote: Brian Volk wrote: Hi All, I'm having trouble narrow down the correct " This piece of code will get ALL the "get_tag('img')) { my $i = $img_tag->[1]; my $code = $i->{'src'}; print "$code\n" } All I want is the 11th one... so I tried to do a foreach (1.

RE: LWP get_tag('img')

2004-12-09 Thread Brian Volk
> Brian Volk wrote: > > Hi All, > > > > I'm having trouble narrow down the correct " > > > This piece of code will get ALL the " > > > while (my $img_tag = $parser->get_tag('img')) { > > my $i = $img_tag->[1]; > > my $code = $i->{'src'}; > > print "$code\n" > > } > > > > All I wa

Re: LWP::UserAgent -> Not in this case?

2004-12-09 Thread diogo . senai
Hi, thanks jonathan, but it´s still not working... In this formfield (numrproc) there´s a script to check if only numbers are being typed etc... Can this script be the problem of all? I´m posting here the source of my script and I´d really really really apreciate if you could try this out with me

Re: LWP::UserAgent -> Not in this case?

2004-12-09 Thread Jonathan Paton
Hi, I can only guess at the source of the problem. I think it is because that web site requires cookies. The solution is to have a cookie jar, like: my $agent = LWP::UserAgent->new(); $agent->cookie_jar({}); Jonathan Paton -- #!perl $J=' 'x25 ;for (qq< 1+10 9+14 5-10 50-9 7+13 2-18 6+13 17+6

Re: LWP get_tag('img')

2004-12-09 Thread Flemming Greve Skovengaard
Brian Volk wrote: Hi All, I'm having trouble narrow down the correct " This piece of code will get ALL the "get_tag('img')) { my $i = $img_tag->[1]; my $code = $i->{'src'}; print "$code\n" } All I want is the 11th one... so I tried to do a foreach (1..11) , very unsucessful... :~)

RE: LWP getstore

2004-12-03 Thread Brian Volk
Dave, Ugh thank you! That worked prefect. :~) Brian > -Original Message- > From: Dave Gray [mailto:[EMAIL PROTECTED] > Sent: Friday, December 03, 2004 11:19 AM > To: Beginners (E-mail) > Subject: Re: LWP getstore > > > > I'm having trouble w/

Re: LWP getstore

2004-12-03 Thread Dave Gray
> I'm having trouble w/ getstore... It works fine when I use it like this [snip] > ... but when I use in the script below, all that happens is the files are > created but they are only 1kb and can not be displayed... When I use the > script above the file size is 14kb and looks great... Obvio

Re: LWP::Parallel in other way

2004-11-07 Thread Ing. Branislav Gerzo
Ing. Branislav Gerzo [IBG], on Tuesday, November 2, 2004 at 16:50 (+0100) made these points: IBG> I'm using LWP::Parallel and it works good for me. But I have one IBG> curious problem - I want change PUA agent for every request. But I so, maybe I have comlicated question, so no one answer me. Bra

RE: LWP

2004-10-20 Thread Bob Showalter
E.Horn wrote: > i want to install LWP! > in the CPAN shell is a mistake... > I have a wrong URL ! > Can someone tell me which url i have to paste? >From within the CPAN shell, you can type o conf init To reconfigure. This will give you a menu of mirrors to choose from (you should select two o

Re: LWP::UserAgent Question

2004-03-31 Thread Oliver Schnarchendorf
On Thu, 1 Apr 2004 09:49:20 +0700, Hari Fajri wrote: > "$ua->credentials($netloc, $realm, $uname, $pass)" > but i do not understand what is $netloc and $realm is... $netloc is the network location. Meaning the http address plus the port the server is running on. $realm i

Re: LWP::Simple problem: CGI related?

2004-03-24 Thread WC -Sx- Jones
Jack Chen wrote: When I ran the above scrip on commandline, it worked. But when I ran it from a browser, it failed and I found a message in the log file saying that $content is undef. Wrong group -- there is a Perl Beginner CGI list too :) But, in the interest of completeness: #! /usr/bin/p

Re: LWP Logging or the such..

2004-02-16 Thread R. Joseph Newton
Martin R Morales wrote: > Good Morning/Afternoon Everyone, > > I have been reading up on LWP::UserAgent and HTTP::Request of the LWP package. > This is good stuff. > But I am still confused about a couple of things. Here is ther senario. I have > a file I want to download from > my server and

Re: LWP Logging or the such..

2004-02-16 Thread Rob Dixon
Martin R Morales wrote: > > Martin R Morales wrote: > > > > I have been reading up on LWP::UserAgent and HTTP::Request of the LWP > > package. This is good stuff. > > But I am still confused about a couple of things. Here is ther > > senario. I have a file I want to download from > > my server and

Re: LWP Logging or the such..

2004-02-16 Thread Martin R Morales
Update:: I have figured out how to save to file .. I have to open a file handle .. duh? yeah .. i know. Okay, but I would still like suggestions on saving my http responses to file .. like a log file of what the script was trying to do on execute. ~Martin Martin R Morales wrote: Good Morning

RE: LWP error string

2003-08-21 Thread Dan Muey
> >Does such a beast exist in LWP and I just missed it or ??? > > Yes, you just missed it. Look in the documentation for > HTTP::Response for these methods: > > message > code > status_line Thankd Peter I'll take a look there! > > -- > Peter Scott > http://www.perldebugge

RE: LWP error string

2003-08-21 Thread Dan Muey
> > What I'd like to be able to do is sometyhign like: > > > > else { print $res->errstr; } > > Dan > Have you seen the Oreilly Open books site. It has the "web > client programming" book online. > http://www.oreilly.com/openbook/webclient/ > > here is a snip of code from it that may help: > -

RE: LWP error string

2003-08-21 Thread Kipp, James
> Sorry for leaving the suubject out previously! > > With LWP or LWP::UserAgent I can check if the request > was ok and then print the content if it was like so: > > if ($res->is_success) { > print $res->content; > } > > But I havn't found a way to see what the error is if it > fails. So

Re: LWP error string

2003-08-21 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Dan Muey) writes: >With LWP or LWP::UserAgent I can check if the request=20 >was ok and then print the content if it was like so: > >if ($res->is_success) { > print $res->content; >} > >But I havn't found a way to see what the error is if it

RE: LWP: Forms Submissions

2003-08-15 Thread wiggins
On Fri, 15 Aug 2003 22:29:46 +0530, Sukrit K Mehra <[EMAIL PROTECTED]> wrote: > Hi listers, > > This is the code of the form. From the website www.m-w.com; for which I > am trying to make a client. > > > > > Merriam-Webster Dictionary >

Re: LWP passing variables in GET method

2003-03-26 Thread Randal L. Schwartz
> "Ramprasad" == Ramprasad <[EMAIL PROTECTED]> writes: Ramprasad> hello all , Ramprasad> I am trying my script with LWP Ramprasad>suppose in my browser I type in Ramprasad> http://google.com/search?q=sendmail Ramprasad> I get the results all right Ramprasad> but when I try to pass va

RE: LWP passing variables in GET method

2003-03-26 Thread Dan Muey
> hello all , Howdy > > I am trying my script with LWP >suppose in my browser I type in > >http://google.com/search?q=sendmail >I get the results all right >but when I try to pass variables by get method using LWP I get an error > message > > > I have tried allowing cookies too. >

Re: LWP::UserAgent w/username and password.

2003-03-26 Thread Steve Grazzini
Mike Blezien <[EMAIL PROTECTED]> wrote: > > I'm working on a project, which uses the LWP::UserAgent > module, and all is working fine untill we had to password > protect a folder with a .htaccess file, on the remote > server. Now we can't grab the file from the remote server, > without the pas

Re: LWP::UserAgent w/username and password.

2003-03-26 Thread Rob Dixon
Mike Blezien wrote: > hello all, > > I'm working on a project, which uses the LWP::UserAgent module, and all is > working fine untill we had to password protect a folder with a .htaccess file, > on the remote server. Now we can't grab the file from the remote server, without > the passing the prope

Re: LWP and authentication

2003-02-14 Thread Dan
Thanks that worked perfect!! And a little bit of print $request->content() and it is done! Thanks Again!! david wrote: Dan Muey wrote: Something like :: use LWP::Simple; my $content = authenticate_and_get($url, $user, $pass); print $content; IE if you got $url in a browser it will prompt

Re: LWP and authentication

2003-02-14 Thread david
Dan Muey wrote: >Something like :: > > use LWP::Simple; > my $content = authenticate_and_get($url, $user, $pass); > print $content; > > IE if you got $url in a browser it will prompt you for your username and > password. > try: #!/usr/bin/perl -w use strict; use LWP::UserAgent; my $agent

Re: LWP::UserAgent

2002-11-27 Thread Rob Dixon
Hi Nandita LWP::UserAgent has redirect enabled only for methods GET and HEAD by default. Since the form's submit method is almost certainly POST, the redirected responses won't be followed. Add POST to the list of redirected methods with $ua->requests_redirectable ( ['GET', 'HEAD', 'POST'] )

Re: lwp installation

2002-08-13 Thread drieux
On Tuesday, August 13, 2002, at 10:10 , Balint, Jess wrote: > Hello all. I was running the testsuite on the lwp and I encountered the > following error: > > NDBM_File.so: undefined symbol: dbm_open > > This is a perl-5.6.1 installation on linux. Is it possible there was a > compile error

Re: LWP post fails

2002-06-12 Thread David T-G
Bob -- ...and then bob ackerman said... % % On Tuesday, June 11, 2002, at 03:02 PM, David T-G wrote: % % >...and then bob ackerman said... % >% % >% i am trying to login to DI-704 DLink router. % > % >Why was this in the "killing idle users" thread instead of in your ... % % i don't know what

Re: LWP post fails

2002-06-11 Thread bob ackerman
On Tuesday, June 11, 2002, at 03:02 PM, David T-G wrote: > Bob -- > > ...and then bob ackerman said... > % > % i am trying to login to DI-704 DLink router. > > Why was this in the "killing idle users" thread instead of in your > "get external IP from D-Link router" thread? It makes it tough to

Re: LWP post fails

2002-06-11 Thread David T-G
Bob -- ...and then bob ackerman said... % % i am trying to login to DI-704 DLink router. Why was this in the "killing idle users" thread instead of in your "get external IP from D-Link router" thread? It makes it tough to follow what you're doing, not to mention distracting... It looks like y

Re: LWP::Simple returns scalar; how to populate an array from it?

2002-03-27 Thread John Bodoni
"Agustin Rivera" wrote: > Try adding > > my @html=split(/\n/, $html); > foreach my $line(@html) > { > #process > } Thank you, Agustin, that did the trick! I played with many regexp combinations, but all more complicated than what you suggested. No wonder Perlsters are always grinning... J

Re: LWP::Simple returns scalar; how to populate an array from it?

2002-03-27 Thread Agustin Rivera
Try adding my @html=split(/\n/, $html); foreach my $line(@html) { #process } Agustin Rivera Webmaster, Pollstar.com http://www.pollstar.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: LWP binary file retrievals?

2002-03-18 Thread Jenda Krynicky
From: Elaine -HFB- Ashton <[EMAIL PROTECTED]> > siren jones [[EMAIL PROTECTED]] quoth: > *>Is it possible to use LWP::Simple to retrieve a binary file (i.e. a > .netCDF *>file)? Using the following code I can retrieve what I'm > guessing are parts *>of the file. That is, what i

Re: LWP binary file retrievals?

2002-03-18 Thread Elaine -HFB- Ashton
siren jones [[EMAIL PROTECTED]] quoth: *>Is it possible to use LWP::Simple to retrieve a binary file (i.e. a .netCDF *>file)? Using the following code I can retrieve what I'm guessing are parts *>of the file. That is, what is retrieved is always 3871 bytes even though *>the file is actually m

  1   2   >