Format:
Recent snippets matching tags of http
$(document).ready(function () { if (window.location.protocol == 'https:') { $("a[href^='http:\/\/" + window.location.hostname + "']").each(function() { this.href = this.href.replace(/^http:/i, "https:"); }); }; });
18 Views
no comments
<configuration> <httpHandlers> <add verb="*" path="*.jsp" type="HinoCentral.Website.AppCode.JSPHandler"/> <add verb="*" path="*.jspf" type="HinoCentral.Website.AppCode.JSPHandler"/> </httpHandlers> <system.webServer> <handlers> <add name="JSPHandler_jsp" path="*.jsp" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness64" /> <add name="JSPHandler_jspf" path="*.jspf" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness64" /> </handlers>
60 Views
no comments
IServiceProvider provider = (IServiceProvider)HttpContext.Current.Context;
HttpWorkerRequest worker = (HttpWorkerRequest)provider.GetService(typeof(HttpWorkerRequest));
416 Views
no comments
#include <iostream> #include <map> #include <set> #include <vector> #include <cstring> using namespace std; #define MAXRANGE 16843 #define MAXN 110 #define MAXNAMELEN 100
152 Views
no comments
public static string SiteUrl() { char[] somesymbols = { '~', '/' }; string Port = HttpContext.Current.Request.ServerVariables["SERVER_PORT"]; if (Port == null || Port == "80" || Port == "443") Port = ""; else Port = ":" + Port; string Protocol = HttpContext.Current.Request.ServerVariables["SERVER_PORT_SECURE"]; if (Protocol == null || Protocol == "0")
145 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
