curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Curl handle as a FILE *

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 6 Dec 2022 13:08:40 +0100 (CET)

On Tue, 6 Dec 2022, Patrick Monnerat via curl-library wrote:

> Please find the source code and use examples of functions curl_fopen() and
> curl_fdopen() in attachement.
>
> These allow associating an URL or a curl handle with a standard C FILE
> pointer and use the standard C IO API on it.

Fun!

Also a quick reminder to readers that if you want an fopen/fread/frite style
API for libcurl, there is also this start => https://github.com/curl/fcurl

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2022-12-06