Chilkat VB.NET HttpResponse Class Reference

HttpResponse

Represents a complete HTTP response.

Properties

Body As Byte __gc[] (ReadOnly)

The response body returned as a byte array.

BodyStr As String (ReadOnly)

The response body returned as a string.

Charset As String (ReadOnly)

The response charset, such as "iso-8859-1", if applicable. Obviously, responses for GIF and JPG files will not have a charset.

ContentLength As Integer (ReadOnly)

The content length of the response, in bytes.

Date As Date (ReadOnly)

The Date response header field, returned in an easy-to-use date/time data type.

Domain As String (ReadOnly)

The domain of the HTTP server that created this response.

Header As String (ReadOnly)

The full text of the response header.

NumCookies As Integer (ReadOnly)

The number of cookies included in the response.

NumHeaderFields As Integer (ReadOnly)

The number of response header fields.

StatusCode As Integer (ReadOnly)

The status code (as an integer) from the first line of an HTTP response. If the StatusLine = "HTTP/1.0 200 OK", the response status code returned is 200.

StatusLine As String (ReadOnly)

The first line of an HTTP response, such as "HTTP/1.0 200 OK".

Methods

Function GetCookieDomain(ByVal index As Integer) As String

Returns the domain of the Nth cookie in the response. Indexing begins at 0. The number of response cookies is specified in the NumCookies property.

Returns Nothing on failure

Function GetCookieExpires(ByVal index As Integer) As Date

Returns the expiration date/time of the Nth cookie in the response. Indexing begins at 0. The number of response cookies is specified in the NumCookies property.

Function GetCookieExpiresStr(ByVal index As Integer) As String

Returns the expiration date/time of the Nth cookie in the response. Indexing begins at 0. The number of response cookies is specified in the NumCookies property.

Returns Nothing on failure

Function GetCookieName(ByVal index As Integer) As String

Returns the name of the Nth cookie returned in the response. Indexing begins at 0. The number of response cookies is specified in the NumCookies property.

Returns Nothing on failure

Function GetCookiePath(ByVal index As Integer) As String

Returns the path of the Nth cookie returned in the response. Indexing begins at 0. The number of response cookies is specified in the NumCookies property.

Returns Nothing on failure

Function GetCookieValue(ByVal index As Integer) As String

Returns the value of the Nth cookie returned in the response. Indexing begins at 0. The number of response cookies is specified in the NumCookies property.

Returns Nothing on failure

Function GetHeaderField(ByVal fieldName As String) As String

Returns the value of a response header field accessed by field name.

Returns Nothing on failure

Function GetHeaderFieldAttr(ByVal fieldName As String, ByVal attrName As String) As String

Returns a response header field attribute. As an example, the response charset is simply the GetHeaderFieldAttr("content-type","charset")

Returns Nothing on failure

Function GetHeaderName(ByVal index As Integer) As String

Gets the name of the Nth response header field. Indexing begins at 0. The number of response headers is specified by the NumHeaderFields property.

Returns Nothing on failure

Function GetHeaderValue(ByVal index As Integer) As String

Gets the value of the Nth response header field. Indexing begins at 0. The number of response headers is specified by the NumHeaderFields property.

Returns Nothing on failure