473,803 Members | 3,416 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HTTP::Response error : "Can' t locate loadable object"

I'm trying to make a HTTP request to a Web server.
The Perl module is executed in mod_perl on Apache 1.3

The code :
----------------
my $r = shift;
my $browser = LWP::UserAgent->new( );
$url = 'http://10.3.8.137/';
my $response = $browser->get($url);
my $response_line = $response->status_line( );
$r->log_error("res ponse line '" . $response_line. "'");
my $isSuccess = $response->is_success() ;

my $content_type = $response->content_type() ;
$r->log_error("Con tent type '" . $content_type ."'");
my $content = $response->content( );
----------------

The problem is , both response_line() and content() methods above give
following output :
---
"500 Can't locate loadable object for module
HTML::Parser in @INC (@INC contains:
/opt/ora9/product/9.2/Apache/perl/lib/5.00503/i686-linux
/opt/ora9/product/9.2/Apache/perl/lib/5.00503
/opt/ora9/product/9.2/Apache/perl/lib/site_perl/5.005/i686-linux
/opt/ora9/product/9.2/Apache/perl/lib/site_perl/5.005
/project/linux/902/APACHE/src/pdc_perl/bin/Linux/Opt/lib/5.00503/i686-linux
/project/linux/902/APACHE/src/pdc_perl/bin/Linux/Opt/lib/5.00503
/project/linux/902/APACHE/src/pdc_perl/bin/Linux/Opt/lib/site_perl/5.005/i686-linux
/project/linux/902/APACHE/src/pdc_perl/bin/Linux/Opt/lib/site_perl/5.005
.. /opt/ora9/product/9.2/Apache/Apache/
/opt/ora9/product/9.2/Apache/Apache/lib/perl
/opt/ora9/product/9.2/Apache/perl/lib/5.00503
/opt/ora9/product/9.2/Apache/perl/lib/site_perl/5.005)
------

On the other hand, the is_success() method returns an empty string and
content_type() method returns 'text/plain' (which is incorrect, since
the content is HTML )

I've checked that, the HTML/Parser.pm is correctly present in the @INC
path and permissions etc are correct.

Can anyone point out, how to solve this ?

Thanks,
S
Jul 19 '05 #1
0 2645

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
47633
by: Danny | last post by:
Hi I don't understand why I keep getting "Error: Object expected" I tried different things and haven't been able to solve it. I'm a newbie so I'm not sure what I'm doing wrong. The debugger breaks at the <BODY> Tag of my code so I'm thinking the problem is with my InitPage() function. I appreciate the advice. Here is my code. <SCRIPT LANGUAGE="Javascript"> <!-- var flag = false;
1
2177
by: mike | last post by:
regards: I write java code to simulate my machine as a HTTP server, what is the "MUST REPLY" HTTP response headers? In my small survey,I think there are 2 "MUST REPLY" HTTP response headers. (1)Content-Length: (length of content which will be transmitted) (2)Content-Type: (by
0
1909
by: Phil | last post by:
I am writing an application (using Visual Studio 2003) that consumes a third party Web Service, but I receive the following error : Client found response content type of 'application/xml; charset=utf-8', but expected 'text/xml'. I can see the XML Document and it is properly structured. Is there any way to overide this and get .NET to process the response XML regardless of the Content Type Setting in the HTTP Response ?
1
11088
by: Alex Maghen | last post by:
I'm getting the error "HTTP Error 403.1 - Forbidden: Execute access is denied" when I try to reach my ASPX pages. Before I go giving Windows permissions to my docroot, etc., I want to understand what users or, preferably, groups, need to have what permissions for basic operation of ASP.NET 2.0. And specifically WHAT permissions should I give these users?
3
2132
by: John Nagle | last post by:
I'm getting a wierd error from urllib2 when opening certain URLs. The code works for most sites, but not all of them. Here's the traceback: InfoSitePage EXCEPTION while processing page "http://www.fourmilab.ch": Problem with page "http://www.fourmilab.ch": HTTP error -1 - .. Traceback (most recent call last): File "D:\projects\sitetruth\InfoSitePage.py", line 318, in httpfetch fd = url_opener.open(self.requestedurl) #...
1
3308
by: ashluvcadbury | last post by:
Hi all I have visual studio 2003 and also configured IIS.But not able to execute any web application. I am a beginner and all the small web applications I had made some days days ago were working perfectly .But now when i tried to execute them again ,they are giving the error"Http error-404 object not found" .what should I do.Please help me out. thanks and regards niki
2
6501
by: =?Utf-8?B?QmFkaXM=?= | last post by:
I'm doing a server side automation(I know it's bad but..) and its working fine locally and when accessing it from a remote machine using web browser is was giving me this error"Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005". so I configured the server using dcomcnfg as described in this link: http://support.microsoft.com/kb/288368/ and know...
3
2994
by: =?Utf-8?B?QmFkaXM=?= | last post by:
I'm doing a server side automation(I know it's bad but..) and its working fine locally and when accessing it from a remote machine using web browser is was giving me this error"Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005". so I configured the server using dcomcnfg as described in this link: http://support.microsoft.com/kb/288368/ and know...
1
1718
by: nguyentrongkha | last post by:
I have two asp.net applications that host on server 2003. I create a hyper link on one application that links to default page of the other application.Whenever users click on that link, I get a error "Object reference not set to an instance of an object" from the application. When I type the link of the application address directly in browser (IE or Firefox), everything loads fine (the applican runs fine). Please some advice....
0
5193
scubak1w1
by: scubak1w1 | last post by:
Hello, Gor some new hardware, Windows Server 2008 with IIS 7; I have full admin access... but am new to IIS 7... :-) I am trying to get Python running under IIS 7 so I can use TileCache: Python version 3.0.1 used the guide at http://forums.iis.net/t/1122937.aspx
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10317
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10295
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7604
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5501
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2972
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.