RE: I canĀ“t make perl log into a server

2003-11-03 Thread Chris Greenhill
Maybe you could parse out the variable from the page? Somthing like: $page =~ /name="PHPSESSID" value="([^"+])"/ $sessionid = $1; $action = "http://www.varig.com/gigof/web/LoginEscala.php";; $response= $ua->request(POST $action,["PHPSESSID"=>$sessionid, "sNomeGuerra"=>"RODRIGUES LOUREIRO", "sEmail

RE: can't find ssleay.dll

2003-11-06 Thread Chris Greenhill
If you're using Active State Perl, go to the command line, type 'ppm' (Perl Package Manager). If you have version 5.8,type install http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd If you have version 5.6,type install http://theoryx5.uwinnipeg.ca/ppmpackages/Crypt-SSLeay.ppd half way through t

RE: LWP::Simple question

2004-07-13 Thread Chris Greenhill
Something like this? open(fh, "/Program Files/OptiPerl/url.alls") or die "Couldn't open URL file!\n"; while () { chomp; my $res = $mech->get( $_ ); if ($res->code > 399) { print $_." is bad\n"; } } -Original Message- From: Brian Volk [mailto:

Problems logging in

2011-07-12 Thread Chris Greenhill
Hi all, I'm having problems logging into a site with LWP and I think it might be something to do with the header or an encoding thing. I have to parse out a couple session identifiers from the log in page $login_page =~ s/[\r\n]//g; $login_page =~ /__V

RE: Problems logging in

2011-07-13 Thread Chris Greenhill
I figured out what was wrong, I was giving useragent POST parameters that had already been URL encoded ("Log+In" rather than "Log In" for example) -Original Message- From: Chris Greenhill [mailto:chr...@oxxfordinfo.com] Sent: Tuesday, July 12, 2011 12:29 PM To: lib

Content Base in Javascript

2000-09-21 Thread Chris Greenhill
.substring(0, nIndex); } else { strBase = window.location.href; } strBase += "SACDHome/"; document.writeln("<BASE HREF='" + strBase + "'>"); What's going on here and how can I get the proper base? Thanks for any help, Chris Greenhill

Can't add cookie to form

2001-03-06 Thread Chris Greenhill
Hello. When I try to add a cookie header to a request that was generated from an HTML::Form like so... $request = $form->make_request; $cookie_jar->add_cookie_header($request); I get an error saying 'Can't locate object method "epath" via package "URI::http" at Cookies.pm line 110' I looked at the

Re: Unlimited size-URL's

2001-05-10 Thread Chris Greenhill
I think this is occurring because that server is using chunked transfer-encoding which I don't know if LWP supports yet (wasn't Gisle working on this?) Curt Powell wrote: > All, > > I ran across a couple of URL's that are peculiar. When these are downloaded > with LWP::UserAgent in its simples

Re: please help me :)

2001-07-27 Thread Chris Greenhill
I had no problem with LWP::Simple version 1.32 What version are you using? Chris G. lanetic wrote: > i'm use LWP::simple > > getprint("http://www.lanetic.de";); > > Can't locate object method "host" via package "URI::_generic" > ??? > > thanxxx

Can't pass hash?

2002-12-17 Thread Chris Greenhill
Hi, I can't seem to pass a hash to a request like this - my $request = HTTP::Request->new(POST=>$action,%args); I get an error saying 'Bad header argument'. I'm sure it's just a symantic problem on my part Christopher Greenhill

RE: Can't pass hash?

2002-12-17 Thread Chris Greenhill
Thanks for the help. I tried \%args and I got -Can't call method "clone" on unblessed reference at Message.pm line 53 probably something else I'm doing somewhere Christopher Greenhill

Dealing with flash redirects

2003-01-16 Thread Chris Greenhill
Hello, This is probably wishfull thinking but I'll ask anyway - has anybody come up with a way to grab redirects from flash movies? Thanks for any help - Chris G.

RE: Dealing with flash redirects

2003-01-17 Thread Chris Greenhill
Thanks, I'll give these a try! Chris G. -Original Message- From: Simon Wistow [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 4:20 AM Cc: [EMAIL PROTECTED] Subject: Re: Dealing with flash redirects On Thu, Jan 16, 2003 at 08:47:50PM +0200, Octavian Rasnita said: > It would be w

RE: $config->{commision_distribution_chart} = @commision_distribu tion_chart;

2003-09-17 Thread Chris Greenhill
I think you want to pass a reference to the array and not the array itself $config->{commision_distribution_chart} = [EMAIL PROTECTED]; my $aref = $config->{commision_distribution_chart}; @distribution_array = @$aref; foreach my $bob (@distribution_array) { # Do something } - By the way