curl-library
Re: Want to use libcurl like command line tool.
Date: Fri, 3 Jul 2009 10:31:40 +0900
Hi!
Thanks for your quick reply.
Hereafter, all the command line commands can be used on C language.
"-- libcurl" is very useful parameter.
2009/7/2 Patrik Thunström <patrik.thunstrom_at_bassetlabs.com>:
> powder0326 wrote:
>>
>> I want to make the directory in the server.
>>
>> In the command line tool
>> It works "Curl -X MKCOL xxx.xxx.xx.xxx/dav/foo".
>>
>> but I don't know how to do the same thing with libcurl?
>> I am using libcurl from c/c++.
>>
>
> Hi!
>
> You can use the command line cURL, with the same command, but add the
> "--libcurl <file>" parameter, to save a file containing the same settings
> for a curl_easy handle as needed to be set if you're calling libcURL using
> c.
>
> For your command this would map to: "Curl --libcurl test.txt -X MKCOL
> xxx.xxx.xx.xxx/dav/foo", and you could see the steps needed to reproduce it
> inside the test.txt file created...
>
> *Patrik Thunström (Mr.)*
> E-mail: patrik.thunstrom_at_bassetlabs.com
> <mailto:patrik.thunstrom_at_bassetlabs.com>
>
>
>
Received on 2009-07-03