I have always used so far:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(targetUri);
do the request
.................
request.ServicePoint.
Now I would like to use the new HttpClient from .net 4.5 and I don't know how to access the ServicePoint properties.
Any ideas how can I access the ServicePoint by using HttpClient?
I believe you will have to use the ServicePointManager to do what you want. Something like;
ServicePointManager.FindServicePoint(targetUri)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With