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.
Callback after http request has been submitted
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Jeroen Ooms via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 7 Dec 2023 20:02:04 +0100
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.
I tried abusing CURLOPT_XFERINFOFUNCTION but I don't think we can
infer from the callback parameters if the request has been fully been
submitted yet. I suppose if we do an upload we could check if ultotal
== ulnow, but for a GET request these are always 0.
What would be a better way?
Date: Thu, 7 Dec 2023 20:02:04 +0100
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.
I tried abusing CURLOPT_XFERINFOFUNCTION but I don't think we can
infer from the callback parameters if the request has been fully been
submitted yet. I suppose if we do an upload we could check if ultotal
== ulnow, but for a GET request these are always 0.
What would be a better way?
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2023-12-07