469,338 Members | 8,242 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,338 developers. It's quick & easy.

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 11373
numberwhun
3,503 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,503 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

Post your reply

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

Similar topics

3 posts views Thread by Rashapoo | last post: by
6 posts views Thread by Steve Teeples | last post: by
19 posts views Thread by Matthias Truxa | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by haryvincent176 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.