Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
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
Medium Priority
?
556 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 10

Accepted Solution

by:
sleep_furiously earned 2000 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

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.
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

730 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