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: Callback after http request has been submitted

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Fri, 8 Dec 2023 09:02:35 +0100 (CET)

On Thu, 7 Dec 2023, Jeroen Ooms via curl-library wrote:

> I am looking for a way in libcurl to trigger a callback once, after a http
> request has been completely submitted (including upload if any), but before
> the server has responded. So basically when we have done our job, and we are
> waiting for a (potentially slow) http request to return a response status.

Remember that there is nothing that prevents a HTTP server from responding
before the entire request has been sent, and it happens regularly. Meaning
that the download can start before the request is completely done.

-- 
  / 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/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-12-08