Optional user-defined timeout for ReceiveHTTPFile()
-
- Addict
- Posts: 1482
- Joined: Tue Feb 22, 2011 1:16 pm
Optional user-defined timeout for ReceiveHTTPFile()
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.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
PureBasic: Born in 1998 and still going strong to this very day!
-
- User
- Posts: 52
- Joined: Wed Feb 04, 2009 8:11 am
- Location: Armenia
Re: Optional user-defined timeout for ReceiveHTTPFile()
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 ?
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 ?