473,387 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

The requested URL could not be retrieved

Hi,

I use perl LWP to connect online database and data is saved in files.

while trying to retrieve i got the below error but data is saved in files.

Here is the error.

ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: http://192.168.1.49/cgi-bin/pubmed_abstract/get.cgi

The following error was encountered:

* Read Timeout

The system returned:

[No Error]

A Timeout occurred while waiting to read data from the network. The network or server may be down or congested. Please retry your request.

Is there any solution?

please tell me any suggestions!!!

with regards
Archana
Jul 22 '08 #1
5 11673
numberwhun
3,509 Expert Mod 2GB
Can you show us your script so we can have a better idea of what it is trying to do?

Regards,

Jeff
Jul 22 '08 #2
KevinADC
4,059 Expert 2GB
I can't connect to the URL you posted either. Are you sure its a good URL?
Jul 22 '08 #3
I can't connect to the URL you posted either. Are you sure its a good URL?
Hi,

What does this error mean?
sometimes it works and sometimes not why?

Here is the code:
Expand|Select|Wrap|Line Numbers
  1.  
  2. #!/usr/bin/perl
  3.  
  4. use CGI;
  5.  
  6. use LWP;
  7.  
  8. use DBI;
  9.  
  10. use CGI::Fast qw(:standard);
  11.  
  12. use LWP::UserAgent;
  13.  
  14. $ua=new LWP::UserAgent;
  15.  
  16. $ua->proxy(['http','ftp'],'http://karchana:ibabguest@proxy.ibab.ac.in:3128');
  17.  
  18. $fetch="http://www.xyz.com";//example of an url to which i am connecting
  19.  
  20. sleep(5);
  21.  
  22. $res=$ua->get($fetch);
  23.  
  24. $result=$res->content;
  25.  
  26. open(FH,">$file") || die "cannot open\n"; //saving the results in file
  27.  
  28. chmod 0777,"$file";
  29.  
  30. print FH $result;
  31.  
  32. close(FH);
  33.  
  34.  
I have one html page in form action i have given this action(/cgi-bin/pubmed_abstract/get.cgi)

This is the output i got!!
Expand|Select|Wrap|Line Numbers
  1.  
  2. ERROR
  3. The requested URL could not be retrieved
  4. While trying to retrieve the URL: 
  5.  
  6. http://192.168.1.49/cgi-bin/pubmed_abstract/get.cgi
  7.  
  8. The following error was encountered:
  9.  
  10.     * Read Timeout 
  11.  
  12. The system returned:
  13.  
  14.     [No Error]
  15.  
  16. A Timeout occurred while waiting to read data from the network. The network or server may be down or congested. Please retry your request.
  17.  
Aug 4 '08 #4
numberwhun
3,509 Expert Mod 2GB
Hi,

What does this error mean?
sometimes it works and sometimes not why?

Here is the code:
Expand|Select|Wrap|Line Numbers
  1.  
  2. #!/usr/bin/perl
  3.  
  4. use CGI;
  5.  
  6. use LWP;
  7.  
  8. use DBI;
  9.  
  10. use CGI::Fast qw(:standard);
  11.  
  12. use LWP::UserAgent;
  13.  
  14. $ua=new LWP::UserAgent;
  15.  
  16. $ua->proxy(['http','ftp'],'http://karchana:ibabguest@proxy.ibab.ac.in:3128');
  17.  
  18. $fetch="http://www.xyz.com";//example of an url to which i am connecting
  19.  
  20. sleep(5);
  21.  
  22. $res=$ua->get($fetch);
  23.  
  24. $result=$res->content;
  25.  
  26. open(FH,">$file") || die "cannot open\n"; //saving the results in file
  27.  
  28. chmod 0777,"$file";
  29.  
  30. print FH $result;
  31.  
  32. close(FH);
  33.  
  34.  
I have one html page in form action i have given this action(/cgi-bin/pubmed_abstract/get.cgi)

This is the output i got!!
Expand|Select|Wrap|Line Numbers
  1.  
  2. ERROR
  3. The requested URL could not be retrieved
  4. While trying to retrieve the URL: 
  5.  
  6. http://192.168.1.49/cgi-bin/pubmed_abstract/get.cgi
  7.  
  8. The following error was encountered:
  9.  
  10.     * Read Timeout 
  11.  
  12. The system returned:
  13.  
  14.     [No Error]
  15.  
  16. A Timeout occurred while waiting to read data from the network. The network or server may be down or congested. Please retry your request.
  17.  
Well, being a private IP address (192.168.....), that machine is presumably on your own network. Is the machine up and running? Can you connect to it and get to the URL? That error is saying that it cannot.

Regards,

Jeff
Aug 4 '08 #5
Well, being a private IP address (192.168.....), that machine is presumably on your own network. Is the machine up and running? Can you connect to it and get to the URL? That error is saying that it cannot.

Regards,

Jeff
Hi,

Thanks for the reply!

That's my server's ip address !!!

Is it timeout error?

How to solve this problem?

with regards
Archana
Aug 5 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Shukie | last post by:
The link for the photos are requested from the server and so the photo appears on screen. I can produce a long list by using the response.write *** & "<br>" or whatever. but is it possible to have...
0
by: Jay C. | last post by:
Jay 3 Jan. 11:38 Optionen anzeigen Newsgroups: microsoft.public.dotnet.framework.webservices.enhancements Von: "Jay" <p.brunm...@nusurf.at> - Nachrichten dieses Autors suchen Datum: 3 Jan...
3
by: Rashapoo | last post by:
I have just completed a basic course in Access. I have some relational b/g in DB2 and Cobol. I have a question my instructor couldn't answer (or maybe I didn't explain myself) I design a...
6
by: Steve Teeples | last post by:
I have a piece of code (written is Visual Studio 2005) that is only reading the Security EventLog. On Windows XP Professiona/Home this code works just fine. int numberOfEntries =...
0
by: keikoo | last post by:
Hi, I need some help with this control. There's a windows form with a axwebbrowser control inside, so users can navigate to a page and it's necessary to keep the session, because, users will...
19
by: Matthias Truxa | last post by:
Hello, can anyone confirm the existence of the following effects which I'd consider being a critical bug in msxml according to w3c's xpath specs? The Spec says: "The parent, ancestor,...
1
by: hameeduddinasim | last post by:
Hi Friends i am badly in need of a help , can any one tell me how to over come the below problem i have web application for reports , and all the reports r working fine in the server but when...
19
by: emanning | last post by:
Using Access 2003 and using a form that's mostly bound. I need a way to tell if user-1 is on the record when user-2 tries to open the same record, w/o waiting for the user-1 to save the record...
1
by: Arash Khatibi | last post by:
I repeatedly encounter "the requested URL not supported" or "the requested URL could not be retrieved" on many websites that I formerly could get access to. please help me solve this problem. thanks
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...

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.