Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Please note that it can successfully access the following URLs:#!/usr/bin/perl -w use strict; use HTTP::Cookies; use LWP::UserAgent; use URI::URL; my $ua = LWP::UserAgent->new; $ua->requests_redirectable ( ['GET', 'HEAD', 'POST'] ); my $cookie_jar = HTTP::Cookies->new; $ua->cookie_jar ($cookie_jar); $ua->agent ("Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"); # p +retends to be IE6 my $url = url 'https://advertise.latimes.com/'; my $res = $ua->get($url); print $res->is_success,"\n"; #$url = url 'https://advertise.latimes.com/portal/page/portal/LA%20Tim +es'; $url = url 'https://advertise.latimes.com/portal/event/portal/LA%20Tim +es?_pageid=273,1&_dad=portal&_schema=PORTAL&_portlet_ref=273_150732_2 +73_1_1&_eventName_register='; $res = $ua->get($url); print $res->is_success,"\n"; print $res->content,"\n";
I can access this URL using browser without any problem, so what the problem with LWP? Can someone try it on your side and let me know what's your results? I am wondering if I should use Perl 5.6 instead of 5.8?
Edit: g0n - replaced pre tags with code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP and Oracle Portal HTTPS site problem
by chargrill (Parson) on Apr 12, 2006 at 23:22 UTC |