asp.net mvc寫的一個介面,postman呼叫沒有問題,但是客戶用delphi寫的呼叫就有問題,我看了下資料
postman呼叫時獲取到的資料是
----------091820145634272
Content-Disposition: form-data; name="plateNo"
晉M30332
----------091820145634272
Content-Disposition: form-data; name="plateColor"
1
----------091820145634272
delphi呼叫時獲取到的資料是
----------091820145634272
Content-Disposition: form-data; name="plateNo"
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
晉M30332
----------091820145634272
Content-Disposition: form-data; name="plateColor"
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
1
----------091820145634272
postman發過來的資料可以使用Request.Form和Request.File獲取到
但是delphi發過來的都獲取不到,
誰知道這是什么問題,
在線等
uj5u.com熱心網友回復:
如果是form,Content-Type不應該是x-www-form-urlencoded嗎?帶File的話,就是multipart/form-datadelphi那邊設定成text/plain是不行的吧。
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/81476.html
標籤:ASP.NET
上一篇:winform 最大化操作,有時候不成功,原因是啥?
下一篇:列舉型別的顯示
