Hola, no sé si tendrá que ver con tu pregunta, pero yo tenía problemas al enviar y chilkat utilizando caracteres especiales como la ñ o acentos y tuve que utilizar el método
PBinary del objeto
CkHttp, con eso corregí el problema.
Cita:
// Response
CkXml xml;
xml.LoadXml(xmlData);
sbXml.Append(xml.getXml());
bool md5 = false;
CkByteData* byteData = new CkByteData();
byteData->put_Utf8(true);
byteData->appendStr(xmlData);
mTBAIEnviar[handle]->ckHttpResponse = mTBAIEnviar[handle]->ckHttp->PBinary(
"POST",
mTBAIEnviar[handle]->url.c_str(),
*byteData,
contentType,
false,
gzip);
delete byteData;
mTBAIEnviar[handle]->lastError = mTBAIEnviar[handle]->ckHttp->lastErrorText();
mTBAIEnviar[handle]->ckHttp->ClearHeaders();
if (!mTBAIEnviar[handle]->ckHttp->get_LastMethodSuccess()) {
mTBAIEnviar[handle]->lastErrorCode = INEOTBAI_ERROR::ERROR_HANDLE_INEOTBAI_ENVIAR;
}
|
Espero que te pueda servir. Un saludo. Roberto Blasco.