CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of Host
C#
using System;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.SelfHost;
 
namespace ConsoleApplication2
by Antony Scott   February 29, 2012 @ 6:41am
136 Views
no comments
 
XML
 <!-- find Microsoft.Common.targets under C:\Windows\Microsoft.NET\Framework\ -->
<Project DefaultTargets="Build" InitialTargets="_CheckForInvalidConfigurationAndPlatform"
         xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 
    <PropertyGroup>
        <UseVSHostingProcess>false</UseVSHostingProcess>
    </PropertyGroup>
 
    <!-- ... -->
</Project>
by bnaya   October 19, 2011 @ 1:10am
Tags: IDE, VS2010, VSHost
79 Views
no comments
 
XML
NameVirtualHost www.domain.local
<VirtualHost www.domain.local>
    DocumentRoot "C:\Documents and Settings\Aria Radmand\"
    ServerName www.domain.local
</VirtualHost>
<Directory "C:\Documents and Settings\Aria Radmand\">
    DirectoryIndex index.php
    AllowOverride All
    Order allow,deny
    Allow from all
by Aria Radmand   October 18, 2011 @ 12:19am
99 Views
no comments
 
C#
//using System.Web; 
 
//to return "http://www.samplepage.com/Egli/index.aspx"
string url = HttpContext.Current.Request.Url.AbsoluteUri;
 
//to return "/Egli/index.aspx"
string path = HttpContext.Current.Request.Url.AbsolutePath;
 
//to return "www.samplepage.com"
string host = HttpContext.Current.Request.Url.Host;
by Egli   July 25, 2011 @ 9:18pm
169 Views
no comments
 
 
203.208.46.30 www.google.com
203.208.46.30 picadaweb.google.com
203.208.46.30 lh1.ggpht.com
203.208.46.30 lh2.ggpht.com
203.208.46.30 lh3.ggpht.com
203.208.46.30 lh4.ggpht.com
203.208.46.30 lh5.ggpht.com
203.208.46.30 lh6.ggpht.com
203.208.46.30 lh6.googleusercontent.com
by clark   July 20, 2011 @ 7:26pm
484 Views
no comments
 
 
203.208.46.29 youtube.com
203.208.46.29 www.youtube.com
203.208.46.29 gdata.youtube.com
203.208.46.29 m.youtube.com
203.208.46.29 help.youtube.com
74.125.71.116 upload.youtube.com
203.208.46.29 accounts.youtube.com
203.208.46.29 insight.youtube.com
203.208.46.29 apiblog.youtube.com
by clark   July 19, 2011 @ 2:16am
212 Views
no comments
 
see http://www.fiddler2.com/fiddler2/
 
NOTE: When using the Visual Studio Developer Web Server you 
      will need to do one of the following: 
1. Call the web services using http://127.0.0.1.:55555/ (note the period after the 1)
2. Add the following to the Fiddler Rules in OnBeforeRequest function,
   remembering to change {machinename} to your computers name
 
    // [CUSTOM] Added to remap call from machine back to localhost
    if (oSession.host=="{machinename}:55555"){
by Al Gonzalez   June 06, 2010 @ 7:15pm
606 Views
no comments
 
C#
namespace Guerche.Evaristo.Luciano.Utils.ComputerInfo
{
    using System;
    using System.Linq;
    using System.Net.NetworkInformation;
 
    class Program
    {
        static void Main(string[] args)
        {
355 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate