View previous topic :: View next topic |
Author |
Message |
AndyJ Guest
|
Posted: Wed Aug 21, 2002 10:29 pm Post subject: Problems with LWP::UserAgent |
|
|
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
|
Posted: Mon Mar 22, 2004 12:28 am Post subject: user_agent |
|
|
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 |
|
|
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Mon Mar 22, 2004 3:08 am Post subject: |
|
|
"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 |
|
|
jmoschetti45 -
Joined: 29 Oct 2003 Posts: 95 Location: MI USA
|
Posted: Thu Apr 08, 2004 3:14 am Post subject: |
|
|
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 |
|
|
|