From Xojo Documentation
Asynchronously requests only the page headers from the specified URL.
Synchronously Requests only the page headers from the specified URL. The headers are return as an InternetHeaders.
If Timeout is set to zero, then there will be no timeout period and the socket will wait indefinitely until it receives the headers or gets an error.
HTTPSocket.ErrorCode is -1 if the Timeout value is reached.