I develop module for DNN and i need to process HTTP request on backend and DNN throws error that there is no HTTPClient on DNN. Looks like something is wrong, could you please me how to make HTTP request on DNN?
Please see the code and error message below:
var client = new System.Net.Http.HttpClient();
var response = client.Get("http://api-develop.custom...i/quarterly-update); response.EnsureSuccessStatusCode();
var body = response.Content.ReadAsString();
var insight = JsonConvert.DeserializeObject(body);
Error CS0246: The type or namespace name 'HttpClient could not be found (are you missing a using directive or an assembly reference?)
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.