Hello Mihir Jha

If you are going to use curl with Xerces, then you need to configure Xerces to 
enable curl. For instance, you will need to set a few configure parameters when 
you run the configure script. For example,

 ./configure --prefix=/ots/xerces/xerces-c-3.0.1 
--exec-prefix=/ots/xerces/xerces-c-3.0.1 CC=/usr/bin/cc CXX=/opt/aCC/bin/aCC 
CXXFLAGS="-Aa -mt -O" CPPFLAGS="-I/ots/curl/curl-7.19.6/include"  
--enable-netaccessor-curl  --with-curl=/ots/curl/curl-7.19.6 
--enable-transcoder-iconv

Also, the environment variable 'http_proxy' needs to be set for Xerces to work 
with the curl library!! No need to make any direct calls in your app to the 
curl API for setting up the proxy host and port.  

Check out the curl documentation.
"libcurl respects the environment variables http_proxy, ftp_proxy, all_proxy 
etc, if any of those are set. The CURLOPT_PROXY option does however override 
any possibly set environment variables." 
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTPROXYPORT

Of course, you will need to supply the respective paths for your environment 
and I do suggestion using the latest version of the curl library. I strongly 
recommend reading the curl documentation as well as the Xerces docs on enabling 
curl for Xerces.

Good luck

DeWayne Dantlzer

-----Original Message-----
From: Mihir Jha [mailto:[email protected]] 
Sent: Tuesday, June 08, 2010 12:43 AM
To: [email protected]
Subject: sample program to use xerces with curl

Hi Friends,

 I am looking for sample program to use xerces with curl.

 Please send some sample, if you have any.

 

Thanks,

Mihir

 

Reply via email to