-1

What on local PC can affect ServicePoint.Address of the HttpWebRequest? After I create a HTTP request by providing a URI:

HttpWebRequest request = (HttpWebRequest) WebRequest.Create(url);

request.ServicePoint.Address having a different value.

GenZiy
  • 1,427
  • 2
  • 15
  • 20
  • Please add more context, including the two values. It's never too late to read [mcve] – Dave S Oct 16 '19 at 17:28
  • Sorry Dave, I am not going to write any values here. Basically cause it is not related to the question. – GenZiy Oct 16 '19 at 17:30
  • 1
    It's hard to help you without more complete information. I agree, it would be very helpful for some specifics. I'm guessing your request is being redirected, but there's no way for us to know if you insist on keeping us in the dark. –  Oct 16 '19 at 17:35
  • That is that http request is been redirected. Question is what in local environment can redirect a http request? And value of the http request do not add you any light to the problem. – GenZiy Oct 16 '19 at 17:43

1 Answers1

0

http request can be redirected by local Proxy settings. To disable it in Windows 10 go to the Settings->Network & Internet->Proxy->Make Use a proxy server = Off, in case if you working on intranet you would need to be sure that Use setup script is Off as well.

GenZiy
  • 1,427
  • 2
  • 15
  • 20
  • Yep, could have told you that yesterday. It's right there in the documentation. But, alas, it wasn't to be. –  Oct 17 '19 at 13:43
  • Sorry, I have a difficulty to follow you. 1st What do you mean by "It's right there in documentation" Which documentation you reffering to? Is it possible to have a link? And 2d, how missing url value can stop you from telling that yesterday. – GenZiy Oct 17 '19 at 16:00