Search code examples
c#asp.netfunctional-testinggeography

Simulate HTTP requests from different location - ASP.Net


I've an asp.net application which shows some information to the users relevant to the country they are from. So I want to do functional testing on my application. How I can simulate HTTP requests to my application from different countries?


Solution

  • Basically use a proxy from another country. Do not forget to set the HttpWebRequest.Proxy property. See the MSDN article Send an HTTP Request with Proxy