Page 1 of 1

Optional user-defined timeout for ReceiveHTTPFile()

Posted: Thu May 12, 2011 1:28 pm
by MachineCode
Could a flag be added to ReceiveHTTPFile() to specify a timeout in seconds? My ISP is having issues lately, and this command "hangs" my app for about 30 seconds while it tries to fetch a file that is impossible to reach. I'd rather it timed out and returned after 3 seconds if it couldn't be found in that time. And I suppose the same request would apply to ReceiveFTPFile() too, for consistency.

Re: Optional user-defined timeout for ReceiveHTTPFile()

Posted: Fri May 13, 2011 1:08 pm
by DaylightDreamer
And i think there would very useful to get the possibility to get HTTP data in the memory or string without having to save it into the file.


Is it possible to define a header to the request ?
And even maybe the possibility to read the header and the HTML code itself separately. And somehow make it not to lose the session between the requests :)
Is it too much ?