curl-library
Re: Want to use libcurl like command line tool.
Date: Thu, 02 Jul 2009 12:02:04 +0200
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-02