Re: Getting data from external URL

2000-08-29 Thread Gisle Aas
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

Re: Getting data from external URL

2000-08-29 Thread Steve Reppucci
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

Re: Getting data from external URL

2000-08-28 Thread Stas Bekman
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

Re: Getting data from external URL

2000-08-28 Thread Steve Reppucci
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

Re: Getting data from external URL

2000-08-26 Thread Stas Bekman
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

Re: Getting data from external URL

2000-08-26 Thread Rodney Broom
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

RE: Getting data from external URL

2000-08-26 Thread Andrew Nicholson
Hello Vijay, You can make simple HTTP GET or POST requests using the LWP and HTTP modules. I recommend that you read the ActivePerl help files. I have attached the one you really need but it probably won't make sense unless you read up on LWP. # A small sample follows: use LWP::UserAgent; # us

Re: Getting data from external URL

2000-08-26 Thread Gerald Richter
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