cURL / Mailing Lists / curl-library / Single Mail


OS/400 Couldn't resolve host

From: Juan Blanco <>
Date: Tue, 24 May 2016 16:23:19 -0400


We are trying to make a post in an OS/400 machine, but are getting result 06 (Couldn't resolve host). Also I set curl_easy_setopt( curl, CURLOPT_ERRORBUFFER, errorText ); to retrieve the error message, and it returns some unreadable characters: Ýä?Í%À>È€ÊÁË?%ÎÁ€Ç?ËÈ€

You know why the error message come with this characters?

And is there any way to submit a curl test from commands on OS/400, like in Windows (In Windows I can run this command curl -H "Content-Type: text/xml; charset=utf-8" -d "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:xsi=\"\" xmlns:xsd=\"\" xmlns:soap=\"\"> <soap:Body> <Add xmlns=\"\"> <intA>3</intA> <intB>9</intB> </Add> </soap:Body></soap:Envelope>") to validate if is a problem on the machine and no a code issue?

Juan Carlos

List admin:
Received on 2016-05-24