What is the difference between Java – multipart/form-data and application-x-www-form-urlencoded? … here is a solution to the problem.
What is the difference between Java – multipart/form-data and application-x-www-form-urlencoded?
I have a very basic question :
What is the difference between multipart/form-data
and application-x-www-form-urlencoded
?
How does data transfer happen in both cases?
Also, can we use both in the same request?
Solution
Check out the answer to this basic question about differences
application/ x-www-form-urlencoded or multipart/form-data?
Can we use both for the same request:
The answer is: no
Meaning: Byte-heavy transfers should use Multipart-Form-Data, and for everything else, application-x-www-form-urlencoded.