cURL / Mailing Lists / curl-library / Single Mail


Getting xerces-c-3.0.1 and libcurl to play together

From: Dantzler, DeWayne C <>
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=" schemaLocation=""/>.

Here's how Java handles this use case:
$ java -Dhttp.proxyHost="" -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?


List admin:
Received on 2009-10-23