Solved

What code page does IIS use to decode input before it is passed to an asp.net page

Posted on 2006-07-02
1
530 Views
Last Modified: 2012-05-05
Hi

I'm not a server expert so please bear with me.

When a web browser passes information to a web server it encodes the url and any query string parameters. I don't know if it encodes any post input.

The web server then has to decode this. How does the web server do this? Preumably it must presume the input is in a particular character set first. Once it has done this, how then does it decode the input. Does it just do a urldecode process or is there something else to it?

Thanks a lot
andrea
0
Comment
Question by:andieje
1 Comment
 
LVL 10

Accepted Solution

by:
sleep_furiously earned 500 total points
Comment Utility
When the request uses a GET method, a web application may put information in query string parameters.  Anything in the URL and query string is presumed to be in US-ASCII characters ( 0 - 127 ) with some of these characters reserved for special functions (per RFC 2616).  To pass any other characters, they must be URL encoded/decoded.

When the request uses a POST method, a web application may put information in the request body.  This can be encoded in a variety of ways.  When the post is sent to the server, it will include a header for Content-Type, which will specify the format and encoding of the data in the request body.

 The HTML <form> element can specify the encoding to use for posting the data using the "enctype" attribute.  By default, an HTML form posts with request type "application/x-www-form-urlencoded".  Other than the default value, the most common enctype is probably "multipart/form-data", which is often used to include a file upload with the form post (and which does not URL encode all the data being posted).  It may also be used to avoid the overhead of URL encoding/decoding large amounts of non-ascii text.

The <form> element also has an "accept-charset" that the server that processes the form can use to specify character encodings it will accept.
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now