cURL / Mailing Lists / curl-library / Single Mail

curl-library

Getting xerces-c-3.0.1 and libcurl to play together

From: Dantzler, DeWayne C <dewayne.c.dantzler_at_boeing.com>
Date: Thu, 22 Oct 2009 22:41:01 -0700

Can I use libcurl along with Xerces to set the proxy host and port number to navigate a firewall? I built Xerces 3.0.1 to use libcurl(--enable-netaccessor-curl), but Xerces does not have an API which wraps libcurl's API to allow Xerces to set the proxy host and port similar to what Java does to set system properties: "http.proxyHost" and "http.proxyPort". Can someone point me to the specific libcurl documentation on the API to support this?

The problem is that there is a proxy between Xerces and the outside world and I need Xerces to perform XML validation against a schema which includes online references to an external schema (e.g <xs:import > namespace="http://www.w3.org/myspace schemaLocation="http://www.w3.org/schema.xsd"/>.

Here's how Java handles this use case:
$ java -Dhttp.proxyHost="www-stl-proxy4.MyProxy.com" -Dhttp.proxyPort="8160" -classpath SimpleParser.jar;xercesImpl.jar JavaXMLParse filename.xml filename.dtd

In a nutshell,how can I do this with Xerces-C++ using libcurl?

Thanks

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-10-23