How do I call a url from controller. i.e. this one "http://xxx.ashx?Item=82f829e6&IsReadonly=false". It cannot be from a href link in the view but has to be from the controller. I am using asp.net MVC Core 1.1
-
1Use HttpClient :)Luke– Luke2017-06-05 11:48:19 +00:00Commented Jun 5, 2017 at 11:48
-
I have tried that but is not a get or post or ... So I wonder what I should set contenttype to and how to trigger the send? Should I use SendAsync?Torben– Torben2017-06-05 12:48:29 +00:00Commented Jun 5, 2017 at 12:48
Add a comment
|