I've been trying to setup a cURL call to a REST API for days (see my previous topics) and still it won't work...
Though, what I need is fairly simple:
I need make a call with the POST method to an url. This URL requires authentication (which, according to the documentation, I should pass by HTTP headers using the GET function). And on top of that, I need to set a body (<searchCriteriaSorting></searchCriteriaSortin
) and I should use the Content-Type: application/xml
and the Charset=UTF-8
.
Nothing more, nothing less. According to the author of the API, it should be very simple. But me, nor my colleagues manage to build a solid connection to this API.