Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(http) Web request provider in coreclr/dnxCore?

Is there a provider available for doing web requests/basic GET downloads in coreclr? (.net core)

Both System.Net.Webclient and HttpWebRequest/HttpWebResponse aren't available, I realize it's aimed at serving content, not consuming, but basic string downloading seems like something that really should have been included?

Am I forgetting something, or is it just straight up not possible?

I can default to full dnx, but would really rather not and lose cross platform compatibility.

like image 961
Kaelan Fouwels Avatar asked Aug 25 '15 18:08

Kaelan Fouwels


1 Answers

You should use the modern HttpClient class from System.Net.Http on NuGet, which supports DNXCore.

like image 178
SLaks Avatar answered Sep 25 '22 06:09

SLaks