Showing posts with label HTTP. Show all posts
Showing posts with label HTTP. Show all posts

Monday, April 23, 2018

Difference between HTTP.SYS and WAS in IIS

HTTP.SYS (Hypertext Transfer Protocol Stack) is the kernel level components of IIS. All client request comes from client hit the HTTP.Sys of Kernel level. HTTP.SYS then makes a queue for each and every request for each and individual application pool based on the request.

Whenever we create any application pool IIS automatically registers the pool with HTTP.SYS to identify the particular during request processing.


WAS(Windows Activation Service) is a new feature of IIS, that allows all the features of the Windows Communication Framework stack, like non-HTTP channels and other stuff.

IIS is the web server that hosts the services that are activated via WAS.

WAS - is the new process activation mechanism that ships with IIS 7.0. WAS builds on the existing IIS 6.0 but is more powerful because it provides support for other protocols besides HTTP, such as TCP and Named Pipes.

For more details, go through IIS architecture

Tuesday, February 07, 2012

Redirect HTTP to HTTPS in ASP.NET

Recently I got to do this when one of our site was hosted on Go Daddy Hosted Server. They don’t have SSL redirect functionality for Windows environment, so we need to write some script to support this.

I have done something like this by writing few lines of code in Global.asax file in your web project.

void Application_BeginRequest(Object sender, EventArgs e)
{
if (ConfigurationManager.AppSettings["APIEnvironment"].ToUpper() == "LIVE"
&& Request.ServerVariables["HTTP_HOST"].ToString().ToLower().Trim() != "localhost") // turn the mode OFF in development
{
if (HttpContext.Current.Request.IsSecureConnection.Equals(false))
{
Response.Redirect("https://" + Request.ServerVariables["HTTP_HOST"] + HttpContext.Current.Request.RawUrl);
}
}
}

Hope this helps. Coffee cup

Saturday, July 07, 2007

Anatomy of Http

I ll post links related to the understanding the core HTTP here.

http://en.wikipedia.org/wiki/Http
http://www.jmarshall.com/easy/http/

For the introduction to Http this is a very good resource
http://www.httpwatch.com/httpgallery/introduction/

WebCaching Tutorial
http://www.mnot.net/cache_docs/

Tools and sites:
View HTTP Request and Response Header

wfetch.exe
http://support.microsoft.com/kb/284285

Tinyget.exe
http://support.microsoft.com/kb/840671

Fiddler
http://www.fiddlertool.com/fiddler/

HTTPWatch
http://www.httpwatch.com/

IEWatch
http://www.iewatch.com/

Ethereal
http://ethereal.com/