I am developing a mobile phone application in the .net framework 3.5, which uses an API service call to verify the email address from the site. I use the code below to execute this
using System.Net.Http; HttpClient webClient = new HttpClient(); webClient.QueryString.Add("email", email); Stream stream = webClient.OpenRead(brandEndPoint);
I initially used WebClient instead of HttpClient and I got this google error " The type or namespace name 'WebClient' could not be found " and fixed it with HttpClient .
After replacing WebClient with HttpClient I get this error " The type or namespace name 'Http' does not exist in the namespace 'System.Net ".
Need help to solve this problem.
thanks
user3100575
source share