http_post

Discussions related to HTTPAPI (An HTTP Client Package for RPG programming.) http://www.scottklement.com/httpapi/
Post Reply
OlivierPierre04
Posts: 17
Joined: Fri Jan 07, 2022 2:56 pm

http_post

Post by OlivierPierre04 »

Hi folks , question

Is it possible to do the same in PUT and not in POST

I would like to use the Filename file in order to have the information when calling the web service

It can be done with Rc = http_post( URL
: %addr( myJSON : *data )
: %only (myJSON)
: Filename
: HTTP_TIMEOUT
: HTTP_USERAGENT
: 'application/json' );


But not with Response =http_string( 'PUT': URL: myJSON: 'application/json');
OlivierPierre04
Posts: 17
Joined: Fri Jan 07, 2022 2:56 pm

Re: http_post

Post by OlivierPierre04 »

I found it


Rc = http_req( 'PUT'
: URL
: Filename
: *omit
: *omit
: myJSON
: 'application/json' );
Post Reply