Page 1 of 1

Optional timeout parameter for the HTTP procedures

Posted: Thu Feb 07, 2019 12:04 am
by infratec
Hi,

I think at the moment there is no timeout for the HTTP procedures.
Today I used HTTPRequestMemory() to access a REST API. Something went wrong and the programm hangs inside the procedure.

Without timeout I have always to use the asynchronous methode and use an own timeout.

Code: Select all

curl_easy_setopt(CURL *handle, CURLOPT_TIMEOUT, long timeout)
Or

Code: Select all

curl_easy_setopt(CURL *handle, CURLOPT_TIMEOUT_MS, long timeout)
Bernd

Re: Optional timeout parameter for the HTTP procedures

Posted: Sat Feb 09, 2019 12:04 pm
by Mijikai
+1