On Thu, Jun 22, 2017 at 2:51 PM, Daniel Stenberg <[email protected]> wrote:
> On Thu, 22 Jun 2017, Mark Fine via curl-library wrote: > > It doesn't seem possible to have libcurl callback a READFUNCTION on a GET >> request. I have the following code: >> > > It's a bit hidden and unintuitive, but possible. You need to ask to do a > POST or PUT and then change the request method to GET with > CURLOPT_CUSTOMREQUEST. Thanks Daniel! That did the trick! curl_easy_setopt(curl, CURLOPT_PUT, 1L); curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET"); Mark > > > > -- > > / daniel.haxx.se >
------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html
