Steve Reppucci <[EMAIL PROTECTED]> writes:
> Just a word of warning: LWP::Simple doesn't follow redirects (at least,
> the last I checked, not sure if it's been changed in the 3 or 4
> months since I've last used it...),
If it does not follow redirects then that is a bug. Do you have a
test cas
Hmmm
Looking at _trivial_http_get:
if ($code =~ /^30[1237]/ && $buf =~ /\012Location:\s*(\S+)/) {
# redirect
So it certainly seems like it's *trying to handle it.
As I recall (it was a late night when I had an application that wasn't
working), I had single stepped down into
On Mon, 28 Aug 2000, Steve Reppucci wrote:
>
> Just a word of warning: LWP::Simple doesn't follow redirects (at least,
> the last I checked, not sure if it's been changed in the 3 or 4
> months since I've last used it...), so you need to be certain that you're
> using it in a context where you'r
Just a word of warning: LWP::Simple doesn't follow redirects (at least,
the last I checked, not sure if it's been changed in the 3 or 4
months since I've last used it...), so you need to be certain that you're
using it in a context where you're fetching something that won't return a
redirect.
HT
On Sat, 26 Aug 2000, Rodney Broom wrote:
> OK, lots of banter...
>
> Hey V, if you are on a *NIX system, then this is a fast way:
>
> open U, "lynx -source www.some.url.dom |";
> $data = join '', ;
>
> There, you're finished. Admittedly, this isn't terribly efficiant, but it works
> just fine
OK, lots of banter...
Hey V, if you are on a *NIX system, then this is a fast way:
open U, "lynx -source www.some.url.dom |";
$data = join '', ;
There, you're finished. Admittedly, this isn't terribly efficiant, but it works
just fine and has short devel time.
Rodney Broom
st);
return $response;
};
-Original Message-
From: Vijay [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 25, 2000 11:15 PM
To: [EMAIL PROTECTED]; mod_perl Maillinglist
Subject: Getting data from external URL
Hello,
I want to get data from an external url in my perl program (either thru
E
Hello,
>
> I want to get data from an external url in my perl program (either thru
> Embperl Execute or directly from perl). What I need is like this.
>
> There is a URL which gives some information in text format. I want to get
> that into a variable or file using perl and using my own html temp
Hello,
I want to get data from an external url in my perl program (either thru
Embperl Execute or directly from perl). What I need is like this.
There is a URL which gives some information in text format. I want to get
that into a variable or file using perl and using my own html templates, I
wa