Re: [xml] HTTP client

I've been done this sort of thing with libxml.

I used libxml to parse the document, then dumped the doc to a string,
escaped the doc converting
the non alphanum chars in the doc to hex and then fired it across a socket,
cating it to a POST or GET with the CGI path.
There can be some problems depending on the web server and it's
implementation of URI unescaping.

I didnt try using the http functions in libxml because I was using OpenSSL
in the client.

Read the online documentation at the libxml site, it explains the all
functions well enough.

"LI,CHARLES (Non-HP-Roseville,ex1)" <charles_li non hp com> on
05/25/2001 05:39:58 PM

Sent by:  xml-admin gnome org

To:   "'xml gnome org'" <xml gnome org>
Subject:  [xml] HTTP client

Hi there,

I need to write a HTTP client program sending HTTP Post request with a
of XML data and get response containing a chunk of XML data. Could somebody
show me an example code using HTTP/URI functions?

Thanks for help!


xml mailing list
xml gnome org


NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]