Click here to Skip to main content
15,885,032 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a Web API Implemented which expects application/json as request's content type. I want to create a method in my API Service which will expect content type as application/x-www-form-urlencoded, while the other methods will continue to work with json.
Can anyone help me with this implementation

Thank you
Posted

1 solution

Refer below link
Sending HTML Form Data in ASP.NET Web API : Form-urlencoded Data
Hopefully, it may help you ...!
 
Share this answer
 
v2
Comments
sagar wasule 30-Dec-15 3:51am    
Thanks Mohsin for your response, but I need to make a specific method to handle Form-urlencoded content type while other methods will be able to handle Json request

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900