curl-library
Re: READFUNCTION + WRITEFUNCTION on GET
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 22 Jun 2017 23:51:27 +0200 (CEST)
Date: Thu, 22 Jun 2017 23:51:27 +0200 (CEST)
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.
-- / daniel.haxx.se ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2017-06-22