Problems with LWP::UserAgent

 
Post new topic   Reply to topic    Aprelium Forum Index -> Perl
View previous topic :: View next topic  
Author Message
AndyJ
Guest





PostPosted: Wed Aug 21, 2002 10:29 pm    Post subject: Problems with LWP::UserAgent Reply with quote

I have a script that uses LWP::UserAgent to query other web sites.
It works fine from the command line, but I can't get it to work with Abyss.

The script is running OK, and it is putting the formatting data in, and I can also see it running through the loops. But for some reason, it does not execute the LWP calls and retrieve the information.

Any ideas?
Back to top
enginehead
-


Joined: 18 Jul 2003
Posts: 3

PostPosted: Mon Mar 22, 2004 12:28 am    Post subject: user_agent Reply with quote

This may not be a pearl issue as I seem to be having the same problem with php. Anybody got any ideas? Abyss people??
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Mon Mar 22, 2004 3:08 am    Post subject: Reply with quote

"Posted: Wed Aug 21, 2002"

You seriously brought an old topic back from the dead. All I can reccomend is make sure you have PHP installed correcly (Redirect_Status = 200; most people forget to do that), and make sure you have the script set up to realitive paths "/htdocs" and not absolute paths "C:\Program Files\Abyss Web Server\htdocs."
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
jmoschetti45
-


Joined: 29 Oct 2003
Posts: 95
Location: MI USA

PostPosted: Thu Apr 08, 2004 3:14 am    Post subject: Reply with quote

I had the same exact problem. I built a "safe browser" (just view source of the page) using the GET.pl and HEAD.pl files I found in the perl/bin directory. Took me forever to figure out what was wrong. I forgot to add:
Code:
print "Content-type: text/html\n\n";

If you don't add that and want to 'print' something to the browser it won't work. For example:
Code:
print "Hello World\n";

Will not work. To make it work before you print anything add the content-type line like this:
Code:
print "Content-type: text/html\n\n";
print "Hello World\n";


You only need to do it once before you print anything to the browser.
_________________
http://jmoschetti45.com
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Perl All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group