cURL / Mailing Lists / curl-library / Single Mail

curl-library

Converting curl command to a C program

From: Michael Wood <esiotrot_at_gmail.com>
Date: Mon, 18 Feb 2013 11:54:07 +0200

Hi

On 18 February 2013 11:02, huancong deng <denghuancong_at_gmail.com> wrote:
> “ curl –i –-url https://xxxx -X DISABLE -H 'Date: Thu, 17 May 2012 19:37:58
> GMT' -H 'Accept: application/xml' , it can use curl to implement it, but i
> want to implement it use libcurl in c, so , how can i do it ? who can tell
> me ? thanks a lot . : )
>
> the mainly point is how to set DISABLE command.

Please do not reply to another message when writing to list, unless
your message is about the message you are replying to.

Please do not reply to digest messages! This message had 6 other
messages in it that had nothing to do with your message! If you
accidentally had digests enabled, but you wanted to reply to something
anyway, at least change the subject!

The digest messages even say that:

>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of curl-library digest..."

When replying to a message on the list, please remove the irrelevant content.

When replying to a message on the list, please do not "top post".
i.e. don't just write your message at the top and leave everything
you're replying to below that.

See also the mailing list etiquette page:
http://curl.haxx.se/mail/etiquette.html

To answer your question, try this:
curl -i --url https://xxxx -X DISABLE -H 'Date: Thu, 17 May 2012
19:37:58 GMT' -H 'Accept: application/xml' --libcurl example.c

and then look at example.c.

> On Mon, Feb 18, 2013 at 4:24 PM, <curl-library-request_at_cool.haxx.se> wrote:
[...]
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of curl-library digest..."
>>
>>
>> Today's Topics:
[...]

-- 
Michael Wood <esiotrot_at_gmail.com>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-18