Page 1 of 1

http_post

Posted: Thu Feb 10, 2022 2:46 pm
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');

Re: http_post

Posted: Thu Feb 10, 2022 4:08 pm
by OlivierPierre04
I found it


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