using System;
using System.Net;
using System.IO;
using System.Text;
using System.Threading;
public class MainClass{
public static void Main(){
WebRequest myWebRequest=WebRequest.Create("http://www.google.com");
Console.WriteLine("\nThe Timeout time of the request before setting is : {0} milliseconds",myWebRequest.Timeout);
myWebRequest.Timeout=10000;
WebResponse myWebResponse=myWebRequest.GetResponse();
}
}