Home > Net >  How to specify HttpClient access to the target host's IP address? For example, I want to use th
How to specify HttpClient access to the target host's IP address? For example, I want to use th

Time:03-27

Sometimes one domain can bind multiple IP addresses, most of the time this is no problem, but if the DNS interpretation of IP is not particularly good, sometimes I think when the HTTP request to bind a choice can use IP addresses,
Because of the need to change within the program, so can't modify the host file directly, (because the program needs to be changed at any time within the IP address)
I don't know httpclient how to deal with? What is the mode of processing or use other better?

CodePudding user response:

With IP address directly to go, please don't use the domain name

CodePudding user response:

Host and domain name back to the host binding, first, second domain name will be a SSL authentication,
  •  Tags:  
  • C#
  • Related