Timeout property
This property contains the amount of seconds that the application will be waiting for finishing a single TCP/IP operation.
If the application could not send or receive data in the specified amount of seconds, the FetchData
method will be terminated and return value 2 as a result (timeout error).
The zero value means the application will wait while the sending HTTP request and receiving HTTP response will be complete.
This is the default value.
Example
http.Timeout = 30
Select Case http.FetchData(url)
Case 2
' Timeout
...
Case 1
' TCP/IP protocol error
...
Case 0
' Ok
...
End Select