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
539 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
ID: 17033980
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 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