Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The Responseobject returns the values that the server processed to the client browser in response to an HTTP request. The following table lists the levels of support for the Responseobject.
Response method or property | Windows Embedded CE implementation |
---|---|
Buffer |
(Property) Fully supported (see Notes). |
CacheControl |
Not supported. Use AddHeaderwith name ="Cache-control". |
Charset |
Fully supported. |
Cookies |
See Collection Objects. |
ContentType |
Fully supported. |
Expires |
Fully supported. |
ExpiresAbsolute |
Fully supported. |
IsClientConnected |
Not supported. |
PICS |
Not supported. Use AddHeaderwith name = "PICS". |
Status |
Fully supported. |
AddHeader |
Fully supported. |
AppendToLog |
Fully supported. |
BinaryWrite |
Fully supported. |
Clear |
Fully supported (see Note). |
End |
Fully supported (see Note). |
Flush |
Fully supported (see Note). |
Redirect |
Fully supported (see Note). |
Write |
Fully supported. |
Note: |
---|
The Bufferproperty indicates whether to buffer page output. When page output is buffered, the server does not send a response to the client browser until all of the server scripts on the current page have been processed or until the Flushor Endmethod has been called. |
Note: |
---|
If the current .asp file has buffering set to TRUE and does not call the Flushmethod, the server honors keep-alive requests that are made by the client browser. Avoiding the call to the Flushmethod saves time because the server does not have to create a new connection for each client browser request. |
Note: |
---|
If buffering is turned off, calls to the Clear, End, Flush, or Redirectmethod fail, just as they do with IIS. When buffering is off, response headers must be added at the very top of the ASP page, before any text is sent to the client browser. |
Windows Embedded CE does not support some of the advanced header-management functions that are available on IIS, such as CacheControl. To set one of these values, call the Response.AddHeadermethod with the name and value, as shown in the following code example.
Copy Code | |
---|---|
<% Response.CacheControl = "private" %> |
For example, the preceding example can be implemented with the following call.
Copy Code | |
---|---|
<% Response.AddHeader("Cache-control","private") %> |
If an advanced header-management function such as Response.CacheControlis called repeatedly on IIS-based ASP, only the value that was set in the last call to the method is sent to the client browser. On Windows Embedded CE–based ASP, calls to the Response.AddHeadermethod append data to the end of the headers and do not overwrite any of the existing headers of the same name.