cURL / Mailing Lists / curl-library / Single Mail


Re: Decoding text returned from an HTTP Post

From: Daniel Stenberg <>
Date: Sun, 25 Oct 2009 19:28:31 +0100 (CET)

On Fri, 23 Oct 2009, Gross, Tim (Utility Computing Architect) wrote:

> I am posting a document to a webserver which returns some text which happens
> to be XML. It comes encoded to do things like replace double-quotes that
> are embedded in an XML attribute value with "&quot;" to preserve the
> validity of the XML. If I do the POST via a web browser, it replaces the
> "&quot;" string with a double quote so that it displays nicely.

That's because "&quot;" and similar is HTML speak, and a web browser is a HTML
browser so it knows how to display those things.

> Is there any function or option in libcurl to do a similar replacement?

Nope. libcurl only delivers the data for you. You'll need to look elsewhere
for existing tools to translate or display the data.

List admin:
Received on 2009-10-25