By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,660 Members | 1,299 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,660 IT Pros & Developers. It's quick & easy.

The requested URL could not be retrieved

P: 79
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
Share this Question
Share on Google+
5 Replies


numberwhun
Expert Mod 2.5K+
P: 3,503
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
Expert 2.5K+
P: 4,059
I can't connect to the URL you posted either. Are you sure its a good URL?
Jul 22 '08 #3

P: 79
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
Expert Mod 2.5K+
P: 3,503
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

P: 79
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

Post your reply

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