Hi,
I have one doubt regarding the Character-Set. I have written one small IIS filter module to fetch the name from query string and display it through our filter. However there is a problem as the characters in query string can be in different character-sets so I need to decode it keeping the Character set in mind. Till here the logic looks fine.
Now the actual problem starts here is that the HTTP Request does not have "Content-Type" header. How can I find the Content-Type of the requested page?
Is there a way to find the default Content-type header defined for Virtual Web Server.
As far as my understanding, the IIS will add the response header once it starts rendering the page. And if the page does not have tag<meta htt-equiv="Content-Type" content .. >, it will set the "Content-Type" header to Default.
In my case our filter intercepts the request, so no rendering has started yet. Please let me know how to find the "Content-Type" for partially/not processed web pages from filter.
Am I looking at wrong header, please correct me.
Thanks,
Neha