curl-library
Re: HTTP methods other than HEAD, GET, or POST?
From: Lijo Antony <lta_at_one.com>
Date: Sun, 28 Oct 2012 15:44:01 +0400
Date: Sun, 28 Oct 2012 15:44:01 +0400
On 10/28/2012 02:51 PM, Hershberg, Josh wrote:
> Is there a way to send other methods with libcurl?
>
Yes. PUT is similar to GET. You may use CURLOPT_CUSTOMREQUEST (in
setopt) for WebDAV methods.
Eg:
curl_easy_setopt(curl_easy_handle_, CURLOPT_CUSTOMREQUEST, "METHOD");
-lijo
> Thanks,
>
> Josh
>
>
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-10-28