PUT with If-Match Header?
Posted: Wed Aug 25, 2021 10:03 am
I'm using HTTPAPI to syncronize different Databases.
Now I need to send Header-Informations with the PUT-Command.
Example:
PUT /SYSTEM/ODataV4/Company('COMP')/Customer('123456')
If-Match: W/"440112715"
With "POSTMAN" there is an own categorie "Headers" - but how to implement this in RPG ?
I use:
Response = http_string('PUT':URLCust:DataU:'application/json');
Now I need to send Header-Informations with the PUT-Command.
Example:
PUT /SYSTEM/ODataV4/Company('COMP')/Customer('123456')
If-Match: W/"440112715"
With "POSTMAN" there is an own categorie "Headers" - but how to implement this in RPG ?
I use:
Response = http_string('PUT':URLCust:DataU:'application/json');