Home > Net >  Nasty, form - the data value problem, online etc.!!
Nasty, form - the data value problem, online etc.!!

Time:09-19

Asp.net MVC write an interface, the postman calls no problem, but customers written in Delphi call have a problem, I look at the data under the
When the postman call access to data is
 -- -- -- -- -- -- -- -- -- - 091820145634272 
The Content - Disposition: the form - data; Name="plateNo
"
Jin M30332
-- -- -- -- -- -- -- -- -- - 091820145634272
The Content - Disposition: the form - data; Name="plateColor
"
1
-- -- -- -- -- -- -- -- -- - 091820145634272

Delphi call access to data is
 -- -- -- -- -- -- -- -- -- - 091820145634272 
The Content - Disposition: the form - data; Name="plateNo
"The content-type: text/plain. Charset="utf-8"
The Content - Transfer - Encoding: 8 bit

Jin M30332
-- -- -- -- -- -- -- -- -- - 091820145634272
The Content - Disposition: the form - data; Name="plateColor
"The content-type: text/plain
The Content - Transfer - Encoding: quoted - printable

1
-- -- -- -- -- -- -- -- -- - 091820145634272


postman sending data can be used to Request the Form and Request. The File access to
But take up less than the Delphi,
Who knows what's the problem,
Online, such as

CodePudding user response:

If it is the form, the content-type should not be x - WWW - form - urlencoded? With the File, is the multipart/form - data
Delphi side set to text/plain is not right,