Skip to content

Instantly share code, notes, and snippets.

@cfurrow
Created January 4, 2012 02:58
Show Gist options
  • Save cfurrow/1558245 to your computer and use it in GitHub Desktop.
Save cfurrow/1558245 to your computer and use it in GitHub Desktop.
Set WebRequest.Proxy to Null
private WebResponse BuildAndGetResponse()
{
string url = BuildUrl();
WebRequest request = null;
WebResponse response = null;
request = WebRequest.Create(url);
request.Proxy = null; // muy importanté
response = request.GetResponse();
return response;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment