curl-library
Re: Can curl return data in XML?
Date: Sat, 6 Nov 2004 20:17:07 -0500
What he said...
You're app is what will do the processing/parsing/handling/etc. There
isn't any reason why you couldn't write a little library function to
wrap curl up, making your calls to it simpler, and having that
function return an XML string or something. At least then you would
always know where to look if you were having a problem with parsing
the returned data.
On Fri, 5 Nov 2004 14:29:21 -0800, Dan Fandrich <dan_at_coneharvesters.com> wrote:
> On Fri, Nov 05, 2004 at 06:00:40PM -0400, Leslie De Jesus wrote:
>
>
> > Hello I am new to cURL just was able to download the result of a post.
> > The result is in HTML. Is there a way for me to get this output in
> > XML?
>
> That's entirely up to the server. All cURL does is download the data onto
> your machine. It's the server's job to format that data in an appropriate
> form. In some specialized cases, you can request that the server give you
> a specific form of output, and in other cases the output may already be XML
> (XHTML). None of that has anything to do with cURL, however.
>
> >>> Dan
> --
> http://www.MoveAnnouncer.com The web change of address service
> Let webmasters know that your web site has moved
>
-- Casey O'Donnell RPI STS Department - Graduate Student http://homepage.mac.com/codonnell/ http://homepage.mac.com/codonnell/wxsync/ http://homepage.mac.com/codonnell/wxblogger/Received on 2004-11-07