Code: Select all
Define NewMap Header.s(),lnR.i
Header("Content-Type") = "application/json"
lnR = HTTPRequest(#PB_HTTP_Post,"http://***.198.229.***:85/api/priceChange",~"[{\"FuelGrade\":\"200\",\"UnitPrice\":1.559,\"Price\":1.559,\"Date\":\"20221003\",\"Time\":\"09:40\"}]",0,Header())
Debug HTTPInfo(lnR,#PB_HTTP_StatusCode) ; Returns 0
POST http://***.198.229.***:85/api/priceChange HTTP/1.1
Content-Type: application/json
User-Agent: PostmanRuntime/7.29.2
Accept: */*
Postman-Token: 05801a9f-ac4a-40b0-9dab-70b2dd94ac07
Host: ***.198.229.***:85
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 86
[{"FuelGrade":"200","UnitPrice":1.559,"Price":1.559,"Date":"20221003","Time":"09:40"}]