Tushar Saha
Tushar Saha

Reputation: 2106

What is the difference between 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 take place in both of these?

And also, can we use both in same request.

Upvotes: 5

Views: 5684

Answers (1)

Maneshwar Singh
Maneshwar Singh

Reputation: 426

Checkout this answer for your basic question about difference

application/x-www-form-urlencoded or multipart/form-data?

Can we use both for the same request:

Answer is : NO

Moral: Byte heavy transmission should use Multipart-Form-Data, for everything else there's application-x-www-form-urlencoded.

Upvotes: 4

Related Questions