Dantzler, DeWayne C wrote:
2) config.log confirmed Xerces was configured to use netaccessor curl
configure:29841: NetAccessor: curl
3)built and installed Xerces
Something goes wrong between this steps...
4)Used curl lib to setup the proxyhost:
======================================================
curl_global_init(CURL_GLOBAL_ALL);
_cURLHandle = curl_easy_init();
curl_easy_setopt(_cURLHandle, CURLOPT_PROXY, proxyHostPort);
5) set the env var http_proxy to the proxy host
Xerces library uses it's own easy session so you should set proxy host
and port with the http_proxy variable.
#1 0xc9e0fe74 in xercesc_3_0::SocketNetAccessor::makeNew (this=0x4001eb40,
urlsour...@0x400401f8, httpInfo=0x0) at ./xercesc/util/XMemory.hpp:107
It is clear that you use xerces library configured with
SocketNetAccessor. You can check the net accessor used by xerces with
code like this:
#include <xercesc/util/XMLNetAccessor.hpp>
if (XMLPlatformUtils::fgNetAccessor) {
const XMLCh *na_id = XMLPlatformUtils::fgNetAccessor->getId();
if (na_id) {
char *na_id_ch = XMLString::transcode(na_id);
if (na_id_ch) {
printf("Net accessor Id [%s]\n", na_id_ch);
XMLString::release(&na_id_ch);
}
else
printf("Can't trancode net accessor id\n");
}
else
printf("Can't get net accessor id\n");
}
else
printf("Net accessor is not configured\n");
Good luck!
Vitaly