Fetching URL contents into a string using HttpWebRequest

You can use the below class for fetching the contents of any HTTP URL using the HTTP GET method. This makes use the webrequest classes of .NET class library. public static class GetUrl { public static string FetchURL(string url) { const int bufSizeMax = 65536; // max read buffer size conserves memory const int bufSizeMin …

Read More

Changing the IP address of the server using asp net

Changing the IP address of the computer automatically is very easy. Microsoft trickily stores the IP information in registry. Refer the below code that changes the IP address of the host server. This can be used in windows application or windows services to change the IP address of the local computer and can also be …

Read More