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

Re: [Ftpapi] CommSSL_Read: Time Out!



Chris -

I had a similar symptom a couple of weeks ago when I failed to terminate the headers with a CRLF. As (it appears) you figured out that HTTPAPI sends the content-type anyway, specifying it in your header procedure is likely redundant.

If you can, I would recommend avoiding @ and $ symbols in any RPG field names. if you find yourself working with a different CCSID, you may find that your source no longer compiles, because the new values of these characters are not valid for field names.

On Fri, 26 Mar 2021 at 08:12, Udesen, Peder <Peder.Udesen@xxxxxxxxxxxxxxx> wrote:

I think you have a syntax error where I marked it.

 

 

 

Med venlig hilsen / Kind regards,

 

Peder Udesen

Developer – Business Systems

...

Smurfit Kappa Danmark

Jens Holms Vej 51, DK-6000 Kolding

...

Tel: +45 79 33 77 04

www.smurfitkappa.dk

 

Please follow this link to find our privacy statement

Check out our microsite: www.openthefuture.dk

 

IF YOU PRINT THIS EMAIL, PLEASE RECYCLE IT. PAPER IS RENEWABLE AND RECYCLABLE

 

 

Fra: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx <ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx> På vegne af Christopher Fitzgerald
Sendt: 23. marts 2021 16:50
Til: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Emne: [Ftpapi] CommSSL_Read: Time Out!

 

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

 

 

We are using the HTTP_URL_GET with a third party, but all we ever get back is the time out error.  Here is the code:

 

http_debug(*On:'/eSolutions/getdebug.txt');

http_setccsids(1208:0);                   

Http_xproc(HTTP_POINT_ADDL_HEADER         

      : %paddr($Add_Headers));            

                                           

@rc = Http_url_get(%Trim(@Uri)            

         : %Trim(@TempFile)               

           : 15                           

           : Http_UserAgent               

           : *Omit                         

           : 'application/json');         

 

P $Add_Headers    B                                         

D                 PI                                        

D   @Headers                 32767a   varying               

D   @Crlf         c                   const(x'0d25')        

                                                             

 /free                                                      

  clear @headers;                                           

  @Headers = //'content-type: application/json' + @Crlf +   

             'ClientId: ' +  %trim(TeId) + @Crlf +          

             'ClientSecret: ' + %trim(TeSecret) + @CrLf +   

             'Cache-Control: ' + 'no-cache' + @CrLf +       

             'Ocp-Apim-Subscription-Key: ' + %Trim(TeSubKey);

 

The company is say they are not even seeing a request from us.  Our side shows that it is going out.  Any ideas would be greatly appreciated.  Thank you.

 

-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi