Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LWP 501 Protocol scheme 'http' is not supported

Status
Not open for further replies.

MrCBofBCinTX

Technical User
Dec 24, 2003
164
0
0
US
I have a command line script that works great.
I use it to search for new things at certain sites.

Since it is not local, I decided that it would be great to move it to my web server, which is strictly mod_perl, apache 1.3 and chrooted.
Everything else already has a web app, this would make everything web browser accessible.

So far I just cannot get the right modules pre-loaded to get my requests to work. I have tried adding everything I could find under HTTP and URI, but still no luck. And LWP is working fine from command line version.
Almost identical version under apache fails at same spots.

I use cookies, which are already tested as OK.

Any ideas? I will post code if no one knows that obvious secret I am missing.

I have come up with preloading: (not exactly in this order)
Code:
 use Apache::RegistryBB();
 use Apache::Request();
 use Apache::Cookie();
 use HTML::Entities();
 use Encode();
 use Date::Format();
 use Mail::RFC822::Address();
 use List::Util();
 use Getopt::Std();
 use MIME::Parser();
 use Mail::POP3Client();
 use HTML::Tagset();
 use HTML::Parser();
 use HTML::TreeBuilder();
 use Image::Info();
 use Cwd();
 use Apache::DBI();
 use DBD::Pg();
 use Carp::Heavy();
 use Exporter();
 use File::Copy();
 use Apache::AuthCookie::Util();
 use Apache::AuthCookie();
require qw(unicore/Heavy.pl);
require qw(unicore/PVA.pl);
require qw(unicore/Exact.pl);
require qw(unicore/Canonical.pl);
require qw(unicore/To/Fold.pl);
require qw(unicore/lib/gc_sc/SpacePer.pl);
require qw(utf8_heavy.pl);
 use Apache::Constants();
 use Apache::Connection();
 use Apache::File();
 use Apache::Util();
 use Apache();
 use POSIX();
 use IPC::Run();
 use Digest::MD5();
 use Time::HiRes();
 use GD();
 use Unicode::Normalize();
 use Mail::Sender();
 use MIME::QuotedPrint();
use LWP::UserAgent();
use HTTP::Cookies();
use HTTP::Config();
use URI();
use Carp ();
use URI::Escape ();
use URI::_foreign();
use URI::_generic();
use URI::_query();
use URI::_server();
use URI::URL();
use URI::http();
use CGI();
use CGI::Carp();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top