HTTPSocket.GetHeaders

From Xojo Documentation

Method

HTTPSocket.GetHeaders(URL As String)

New in 5.5

Supported for all project types and targets.

Asynchronously requests only the page headers from the specified URL.


Method

HTTPSocket.GetHeaders(URL As String ,Timeout As Integer) As InternetHeaders

New in 5.5

Supported for all project types and targets.

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.

Notes

When running synchronously, set the Yield property to True to allow for background activities while waiting.