I need to access simultaniously multiple instances of a web services with the following Url. The web services is hosted in IIS and has SSL enabled.
https://services.mysite.com/data/data.asmx
Usually, when we do this process manually, we go one by one and update the Windows host file (c:\Windows\System32\drivers\etc\hosts) like this :
192.1.1.100 services.mysite.com
I would like to automate the process and do it with some multithreading. So I cannot change the Host file. Is there a way to simulate a host file when we do a HTTP request in C#?
Thanks!
I am getting “The request failed with HTTP status 403: Forbidden.”.
ServicePointManager.ServerCertificateValidationCallback += delegate{ return true; };
dataUrl = “http://machine1/dataaccess/DataService.asmx”; DataService dataService = new DataService(dataUrl); return dataService.GetData();
The problem is that without the Host file, I am unable to use this Url : https://services.mysite.com/data/data.asmx. How do I hit a specific machine and bypass SSL?
– Martin07 августа 2009, 22:36