cURL / Mailing Lists / curl-library / Single Mail

curl-library

OS/400 Couldn't resolve host

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

Hello,

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: Ýä?Í%À>È€ÊÁË?%ÎÁ€Ç?ËÈ€http://www.dneonline.com/calculator.asmx.

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 http://www.dneonline.com/calculator.asmx -H "Content-Type: text/xml; charset=utf-8" -d "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"> <soap:Body> <Add xmlns=\"http://tempuri.org/\"> <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?

Thanks,
Juan Carlos

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-05-24