简体   繁体   中英

.NET 4.5 HttpClient request ServicePoint

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM