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

Re: [Ftpapi] Is there an example available for doing a PUT with an http_persist_request?



References found for http_persist_request

LIBHTTP/QRPGLESRC/HTTPAPI_H
LIBHTTP/QRPGLESRC/HTTPAPIR4

Example:

/include qrpglesrc,httpapi_h                       
                                                   
 URL = 'https://wwwcie.ups.com/ups.app/xml/Track'; 
                                                   
 comm = http_persist_open( url );                  
                                                   
 if comm = *null;                                  
   http_crash();                                   
 endif;                                            

  rc = http_persist_get( comm: url: 0: %paddr( inComing )); 
                                                            
  if rc <> 1;                                               
    // handle error                                         
  endif;                                                    
                                                            
endfor;                                                     
                                                            
http_persist_close(comm);                                   
                                                            
*inlr = *on ;                                               
return ;                                                    



www.pilotpen.us
Chris Hayden - Sr. Systems Analyst
Office: (904) 645-9999 ext.1252
Mobile: 904-654-4089
Pilot Corporation of America
3855 Regent Blvd, Jacksonville, Florida 32224 United States

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. 
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of James H. H. Lampert
Sent: Wednesday, November 1, 2017 2:47 PM
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [Ftpapi] Is there an example available for doing a PUT with an http_persist_request?

I've just been informed by our web service developer that he is converting certain web services from a POST operation to a PUT operation.

So far as I can determine, HTTPAPI only supports a PUT operation via http_persist_request.

But none of the examples, at least in the version of HTTPAPI we've standardized on, use http_persist_request for *anything*.

Can anybody point me to some example code?

I'd rather not have to give the web service developer a direct order to restrict web services to GET and POST operations. I'm already on his case about too many other things as it is.

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