How to use HttpWebResponse and WebResponse in .NET Core?
1 answer
You are actually using System.Net.Requests
which is not available for .NETStandard 1.6 or for .Net Core.
Try using classes instead System.Net.Http
.
Or you can install the System.Net.Requests NuGet Package via the Package Manager Console:
Install-Package System.Net.Requests -Version 4.3.0
This package contains compatible classes System.Net.Requests
and can be used as a replacement.
+3
source to share