User Guide

266 Chapter 14 Scripting the Visual Tools Object Model
httpPro.URL = "http://www.macromedia.com";
httpPro.Get();
app.MessageBox( httpPro.ReceivedHeaderAsString ,"Received HTTP Header",
hsOKInfo);
app.MessageBox(
"URL=’ "+ httpPro.URL + "‘\n" +
"ProxyUsername=’" + httpPro.Username + "‘\n" +
"ProxyPassword=’" + httpPro.Password + "‘\n" +
"Proxy=’" + httpPro.Proxy + "‘\n" +
"ProxyPort=’" + httpPro.Proxyport + "‘\n" +
"ProxyUsername=’" + httpPro.ProxyUsername + "‘\n" +
"ProxyPassword=’" + httpPro.ProxyPassword + "‘\n" +
"Sender=’" + httpPro.Sender + "‘\n" +
"Agent=’" + httpPro.Agent + "‘\n" +
"Reference=’" + httpPro.Reference + "‘\n" +
"NoCache=’" + httpPro.NoCache + "‘\n" +
"ModifiedSince=’" + httpPro.ModifiedSince + "‘\n" +
"Cookie=’" + httpPro.Cookie + "‘\n" +
"ContentTypePost=’" + httpPro.ContentTypePost + "‘\n" +
"MultiThreaded=’" + httpPro.MultiThreaded + "‘\n"+
"State=’" + httpPro.State + "‘\n"+
"ContentLength=’" + httpPro.ContentLength + "‘\n"+
"ContentType=’" + httpPro.ContentType + "‘\n"+
"RcvdCount=’" + httpPro.RcvdCount + "‘\n"+
"SentCount=’" + httpPro.SentCount + "‘\n"+
"StatusCode=’" + httpPro.StatusCode + "‘\n"+
"ReasonPhrase=’" + httpPro.ReasonPhrase + "‘\n"+
"AuthorizationRequest=’" + httpPro.AuthorizationRequest + "‘\n"+
"DocName=’" + httpPro.DocName + "‘\n"+
"Location=’" + httpPro.Location + "‘\n"
,"HTTP Provider Diagnostics", hsOKInfo);
var sOutput = httpPro.ReceivedStreamAsString;
app.activeDocument.Text = sOutput;
}
GetAsync
Syntax GetAsync();
Description Performs an HTTP GET method request asynchronously.
Head
Syntax Head();
Description Performs an HTTP HEAD method request.