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.

HTTP/2 PING : how can execute curl_easy_perform function only to connect to the server side

From: Kalin via curl-library <curl-library_at_lists.haxx.se>
Date: Wed, 18 Jan 2023 12:40:16 +0200

Hello,

I'm using libCURL in client side application and wonder how can I connect
to server side, without sending any HEADERS/DATA frame.
This means sending Magic and exchanging SETTINGS frames, but not sending
any frame on a Stream different than Zero.

Мy question is because I'm trying to send PING frame as a way to check
whether an idle connection is still functional. As stated in documentation
curl_easy_upkeep function could be treated only by curl_easy_perform.
Unfortunately, calling of curl_easy_perform leads to connect to server
side, exchanging of SETTINGS frames and sending unwanted HEADERS/DATA
frame, i.e. GET/POST request.

Best regards,
Kalin


-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-01-18