Web API中的内容类型application / x-www-form-urlencoded [英] Content Type application/x-www-form-urlencoded in Web API
本文介绍了Web API中的内容类型application / x-www-form-urlencoded的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Web API Implemented,它将application / json作为请求的内容类型。我想在我的API服务中创建一个方法,它希望内容类型为application / x-www-form-urlencoded,而其他方法将继续使用json。
任何人都可以帮助我这个实现
谢谢
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
推荐答案
请参阅以下链接
在ASP.NET Web API中发送HTML表单数据:表单 - urlencoded数据
希望它可以帮助你......!
Refer below link
Sending HTML Form Data in ASP.NET Web API : Form-urlencoded Data
Hopefully, it may help you ...!
这篇关于Web API中的内容类型application / x-www-form-urlencoded的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文