Microsoft Windows CE 3.0  

Accessing Client Data without the ASPCOLCT Component

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.

You can access the raw input from the client browser even without having collection objects included as a component, although parsing is nontrivial. In particular, Web browsers use escape sequences to send certain characters, such as spaces, across the network. Handles within ASP automatically decode data that is sent from the browser when collection objects are used. However, if the data is accessed in its raw form, it becomes the responsibility of the script to handle this conversion. If you intend to write ASP pages that receive input from the client browser, it is recommended that you include the ASPCOLCTcomponent and use the built-in objects.

The query string can be accessed easily in raw form without collection objects through a call to the Request.ServerVariables("QueryString" ).

To access cookies that are sent by the browser, call the Request.ServerVariables("ALL_RAW" )method and remove the "Cookie:" value from the header.

To access POST data, call the Request.BinaryReadmethod. See the notes on Request.BinaryReadfor more information on this function.

To send cookies to the client, call the Response.AddHeadermethod with the nameparameter set to "Set-cookie" and the valueparameter set to the cookie name and value pairs.



 Last updated on Friday, April 02, 2004

© 2004 Microsoft Corporation. All rights reserved.