Using JavaScript in HomeSite 4.0, Part III: The HTTPProvider Object's Properties, Part III | WebReference

Using JavaScript in HomeSite 4.0, Part III: The HTTPProvider Object's Properties, Part III


Using JavaScript in HomeSite 4.0, Part III

The HTTPProvider Object's Properties, Part III

AuthorizationRequest Read String

Returns the authentication response header field. This field is part of the 401 (Unauthorized) response message. It includes at least one problem that indicates the authentication scheme and parameters applicable to the Request-URI.

DocName Read String

Returns the document name segment from the requested URL.

Location Read String

Returns the response header field which defines the exact location of the resource that was identified by the Request-URI. If there was a redirection at the server, then the final URL of the resource is returned.

Sender Read String

Sets/returns the sender parameter.

Agent Read String

Sets/returns the identification of the client which initializes a request. You can use this property to identify yourself as a client type or to emulate a browser.

Reference Read String

Sets/returns the Referrer request-header field. This field allows the client to specify the address (URI) of the resource from which the Request-URI was obtained. The server can use these URIs to generate list of clients for interest, logging, optimized caching, tracing mistyped links, etc. The Referrer field must not be sent if the Request-URI was obtained from a source that does not have its own URI, such as input from the user keyboard.

NoCache Read-Write Boolean

Sets/returns the NoCache request-header field.

ModifiedSince Read-Write Boolean

Sets/returns the Modified-Since request-header field.

Cookie Read-Write Boolean

Sets/returns the Cookie header element. You can use this property to send a set of client cookies to the server along the HTTP request.

ContentTypePost Read-Write String

Sets/returns the Content-Type entity-header field. This field indicates the media type of the Entity-Body sent to the recipient or, in the case of the HEAD method, the media type that would have been sent had the request been a GET.

MultiThreaded Read-Write Boolean

Sets/returns whether the HTTPProvider uses multithreading when executing HTTP requests.

State Read Enumerated

Returns the state of the HTTPProvider object. The enumerated state values are:

StatusCode ReasonPhrase
0 httpReady 1 httpNotConnected 2 httpConnected (browse) 3 httpDnsLookup 4 httpDnsLookupDone 5 httpWaitingHeader 6 httpWaitingBody 7 httpAborting

https://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran

Created: October 11, 1999
Revised: October 11, 1999

URL: https://www.webreference.com/js/column50/httpprop3.html