The Content method returns the content of the request as a string. Note that binary data (eg gif's, jpg's) cannot be returned by this method. A request made with the HEAD method will return an empty string.
Syntax
Content
Parameters
None
Return Values
The content of the request as a string.
Example
The following requests a URL and outputs the content:
<% Set OCXHttp = Server.CreateObject("OCXHTTP.OCXHttpCtrl.1") %>
<%
result = OCXHttp.GET("http://www.flicks.com/scripts/debug.asp")
%>
<% If "" = result Then %>
Succesfully requested file.
Content is:
<%= OCXHttp.Content %>
<% Else %>
Could not request file because: <%= result %>
<% End If %>
Applies To