When using HttpUtils is there a way to see the raw requests being sent and received?
This is for a .net core console application.
When using HttpUtils is there a way to see the raw requests being sent and received?
This is for a .net core console application.
For getting the request/response, you’ll see in the method definition there are 2 optional Action
s that are request + response filters.
"https://web.web-templates.io/hello?Name=World".GetJsonFromUrl(request =>
{
//HttpWebRequest access
Console.WriteLine(request.Accept);
}, response =>
{
//HttpWebResponse access
Console.WriteLine(response.ContentType);
});