How to keep .Net HttpWebRequest from using IP

55 Views Asked by At

I build my request and provide a domain name, e.g. 'http://webservices.mydomain.com/test'

Problem is HttpWebRequest automatically resolves/translates to an IP address when submitting. Deployment is within a very large Fortune 500 corporation with a security policy that IP address requests are never allowed so the request fails. I need the HttpWebRequest to make its request with the domain name, not an IP address, is there a way to force it to keep the domain name when requesting?

0

There are 0 best solutions below