HEAD

The HEAD method requests a URL using the HEAD method. The Content or ContentToFile property will return empty with this method.

Syntax

HEAD(URL)

Parameters

URL
The URL to request.

Return Values

Empty if the URL is successfully requested, or an error message.

Example

The following requests a URL:


<% Set OCXHttp = Server.CreateObject("OCXHTTP.OCXHttpCtrl.1") %>

result = OCXHttp.HEAD("http://www.flicks.com/scripts/debug.asp")
%>
<% If  "" = result Then %>

Succesfully requested file.

<% Else %>

Could not request file because: <%= result %>

<% End If %>
 

Notes

Applies To

OCXHttp ASP Component