I've web application which sends HTTP request to server.It uses WebRequest.Create method. My question is.I need to change domain name or ip for HTTP request but i can't see the right place.Look at it please.
public WebWrapper() { this.UseProxy = false; this.UA = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.107 Safari/535.1"; this.Proxy = new WebProxy(); this.LastPage = "http://google.com/"; this.cookies = new CookieContainer(); } public string httpGet(string Address, [Optional, DefaultParameterValue(true)] bool Redirect) { string str; try { IEnumerator enumerator; this.WebRequest = (HttpWebRequest) WebRequest.Create(Address); this.WebRequest.Method = "GET"; this.WebRequest.Headers.Set("Accept-Language", "en,en-us"); this.WebRequest.Headers.Add("Cache-Control", "no-cache"); this.WebRequest.CookieContainer = this.cookies; this.WebRequest.UserAgent = this.UA; this.WebRequest.Referer = this.LastPage; Here's place of domain or am I wrong?
this.WebRequest = (HttpWebRequest) WebRequest.Create(Address); This constant(address),where is it in code?I am using SAE for .NET