The requested URL could not be retrieved

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Archanak
    New Member
    • Sep 2006
    • 79

    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
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    Can you show us your script so we can have a better idea of what it is trying to do?

    Regards,

    Jeff

    Comment

    • KevinADC
      Recognized Expert Specialist
      • Jan 2007
      • 4092

      #3
      I can't connect to the URL you posted either. Are you sure its a good URL?

      Comment

      • Archanak
        New Member
        • Sep 2006
        • 79

        #4
        Originally posted by KevinADC
        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:
        Code:
        #!/usr/bin/perl
        
        use CGI;
        
        use LWP;
        
        use DBI;
        
        use CGI::Fast qw(:standard);
        
        use LWP::UserAgent;
        
        $ua=new LWP::UserAgent;
        
        $ua->proxy(['http','ftp'],'http://karchana:ibabguest@proxy.ibab.ac.in:3128');
        
        $fetch="http://www.xyz.com";//example of an url to which i am connecting
        
        sleep(5);
        
        $res=$ua->get($fetch);
        
        $result=$res->content;
        
        open(FH,">$file") || die "cannot open\n"; //saving the results in file
        
        chmod 0777,"$file";
        
        print FH $result;
        
        close(FH);
        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!!
        Code:
        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.

        Comment

        • numberwhun
          Recognized Expert Moderator Specialist
          • May 2007
          • 3467

          #5
          Originally posted by Archanak
          Hi,

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

          Here is the code:
          Code:
          #!/usr/bin/perl
          
          use CGI;
          
          use LWP;
          
          use DBI;
          
          use CGI::Fast qw(:standard);
          
          use LWP::UserAgent;
          
          $ua=new LWP::UserAgent;
          
          $ua->proxy(['http','ftp'],'http://karchana:ibabguest@proxy.ibab.ac.in:3128');
          
          $fetch="http://www.xyz.com";//example of an url to which i am connecting
          
          sleep(5);
          
          $res=$ua->get($fetch);
          
          $result=$res->content;
          
          open(FH,">$file") || die "cannot open\n"; //saving the results in file
          
          chmod 0777,"$file";
          
          print FH $result;
          
          close(FH);
          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!!
          Code:
          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.
          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

          Comment

          • Archanak
            New Member
            • Sep 2006
            • 79

            #6
            Originally posted by numberwhun
            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

            Comment

            Working...