Optional timeout parameter for the HTTP procedures

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
infratec
Always Here
Always Here
Posts: 7583
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Optional timeout parameter for the HTTP procedures

Post 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
User avatar
Mijikai
Addict
Addict
Posts: 1517
Joined: Sun Sep 11, 2016 2:17 pm

Re: Optional timeout parameter for the HTTP procedures

Post by Mijikai »

+1
Post Reply