HTTPSecureSocket.GetHeaders

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

HTTPSecureSocket.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

HTTPSecureSocket.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.

HTTPSecureSocket.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.