L
L
LiptonOlolo2016-06-12 23:05:38
C++ / C#
LiptonOlolo, 2016-06-12 23:05:38

What can replace WebClient.DownloadString?

Goodnight.
There are problems with the WebClient when running on multiple threads, well, the one that says that you cannot use the WebClient on multiple threads. What could be substituted? You just need to get a response from the API.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vyacheslav Zolotov, 2016-06-12
@SZolotov

HttpClient has been recommended by Microsoft for several years.

R
Rou1997, 2016-06-12
@Rou1997

RestSharp library, or own implementation on HttpWebRequest or up to TCP/IP.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question