AFAIK, there
Posts Tagged ‘Request.Url’
Convert the Request URL to an SSL/HTTPS link
December 28th, 2009
Ankit For example to take the current request URL and converted it to a secure URL can be done like this: Secure Sockets Layer (SSL). UriBuilder build = new UriBuilder(Request.Url); build.Scheme = “https”; build.Port = -1; // don’t inject port Uri newUri = build.Uri; string newUrl = build.ToString();
RSS Feed
Twitter
Posted in
Tags: