skip to Main Content

Passing multiple POST parameters in ASP.NET Core controller – Jquery ajax

I have the following controller method: [HttpPost] public IActionResult AddNewMessage(string recipientUserId, string message) { var currentLoggedInUserId = this.User.FindFirstValue(ClaimTypes.NameIdentifier); _chatMessageRepository.AddNewMessage(currentLoggedInUserId, recipientUserId, message); return Ok(); } And I am trying to send data to it, using the following JQuery code: var data…

VIEW QUESTION

Ebay API – IdHTTP how to send x-www-form-urlencoded body

I have tested POST function in PostMan to do POST function with body parameters as below: Here is eBay's document for this function: HTTP method: POST URL (Sandbox): https://api.sandbox.ebay.com/identity/v1/oauth2/token HTTP headers: Content-Type = application/x-www-form-urlencoded Authorization = Basic <B64-encoded-oauth-credentials> Request body:…

VIEW QUESTION
Back To Top
Search