frombodyattribute Questions
3
Solved
I am creating an ASP.Net 5 application with MVC 6, using .Net 4.5.1. I have a POST method that uses a FromBody parameter to get the object automatically.
[HttpPost]
public IActionResult Insert([Fr...
Lentiginous asked 17/5, 2016 at 13:21
3
Solved
I want to implement a REST API and need a body on my GET requests. (Like discussed here: HTTP GET with request body)
Are there http clients which are not able to send a body with a GET request? Fi...
Jacquiline asked 18/6, 2012 at 21:14
5
Solved
I'm sending a json payload in a PUT request to a web API controller action. The action in question has a signature that looks like this:
public IHttpActionResult Post([FromBody]SaveThingRequest re...
Ducharme asked 14/8, 2014 at 17:5
2
Solved
Here's the basic setup, I have an asp.net core webapi controller (in c#) with a post function like so:
[HttpPost]
public ActionResult<string> Post([FromBody] string Name)
{
//Do some proces...
Ranaerancagua asked 29/8, 2018 at 4:51
4
Solved
This is an offshoot from this question Why is the HttpWebRequest body val null after "crossing the Rubicon"? which was answered (one hurdle is leapt), but the next hurdle trips me up.
Wi...
Lamprophyre asked 14/3, 2014 at 19:1
4
Solved
This is Asp.Net Webform application
This is my POST method in my Apicontroller
public void Post([FromBody]string value)
{
}
I'm with fiddler post process.
I did so experiment.
But it did not.
W...
Puma asked 30/5, 2013 at 13:40
1
Solved
I am trying to send the contents of an XML file from a handheld device (Compact Framework/Windows CE) to a Web API method in my server app like so (Client code):
public static string SendXMLFile(s...
Davin asked 12/3, 2014 at 16:43
3
Solved
I have a new method in web api
[HttpPost]
public ApiResponse PushMessage( [FromUri] string x, [FromUri] string y, [FromBody] Request Request)
where request class is like
public class Request
...
Dribble asked 22/8, 2012 at 11:39
1
© 2022 - 2025 — McMap. All rights reserved.