[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Error using http_url_get



What version of HTTPAPI are you using?  This sounds like a bug that was fixed, but I was not able to find specifics in the archives.  You might want to just try the latest version to see if you still have the problem.
--
Sean Porterfield


-----Original Message-----
From: Ceriani Matteo
Sent: Wednesday, December 18, 2013 03:14

Hi Scott,

I try to use rc = http_url_get(URL: link); and it works well, but after many time that I use it in interactive procedure, I obtain -1 return value and using: http_error(err); Err is value with "ERR = 4" and reading unix documentation I've understood that should be a problem on the open socket... is there a way to close then?
if i do on my system "ulimit -aH" i've for  unlimited    and if I do  "ulimit -aS" I've 200 for open file/item.
thk's in advance.
Matteo

my code:

http_debug(*off:'/PUMART/dbg.txt');
         rc = http_url_get(URL: link);
         if rc = 302;
            url = http_redir_loc;
            rc = http_url_get(URL: link);
         endif;
         if rc <> 1 ;
            http_error(err);
            if err <> HTTP_NDAUTH;
               http_debug(*on:'/PUMART/dbg.txt');
               msg = HTTP_ERROR;
               return *on;
            endif;
            rc = http_getauth(basic: digest: realm) ;
            if rc < 0;
               msg = HTTP_ERROR ;
               return *on;
            endif ;
            userid = 'xxx';
            pass = 'xxx' ;
            if  Digest   ;
                http_setauth(HTTP_AUTH_MD5_DIGEST:
                                     userid: pass);
            else;
                 http_setauth(HTTP_AUTH_BASIC:
                                      userid: pass);
           endif ;
           rc = http_url_get(URL: link);
           if rc = 302;
              url = http_redir_loc;
              rc = http_url_get(URL: link);
           endif;
           IF  rc <> 1;
               http_debug(*on:'/PUMART/dbg.txt');
               eval      msg = HTTP_ERROR;
               return *on;
           endif;
         endif;



________________________________

This email is confidential, intended only for the named recipient(s) above and may contain information that is privileged. If you have received this message in error or are not the named recipient(s), please notify the sender immediately and delete this email message from your computer as any and all unauthorized distribution or use of this message is strictly prohibited. Thank you.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------