Multipart/form-Data Format

Source: Internet
Author: User

During network programming, You need to upload files to the server. Multipart/form-data is a method for uploading files.

Multipart/form-data is actually the way the browser uploads files using forms. The most common situation is: when writing an email, add attachments to the email. attachments are usually added using forms, that is, uploaded to the server in the multipart/form-data format.

From Reference

Http://www.pc6.com/infoview/Article_50285.html

As we all know, the HTTP protocol specifies the application layer standards based on TCP and IP protocols for transmission of ASCII codes. The standard content divides HTTP requests into three departments: Status lines and request headers, request body. All methods and implementations are completed by using and organizing these three parts. In other words, we can leave it alone. As long as we understand the HTTP request components, we can naturally respond to any actual work needs and problems.

The multipart/form-Data Request Header must contain a special header information: Content-Type

From Reference

Http://blog.csdn.net/five3/article/details/7181521

 

The earliest http post does not support file upload, which brings many problems to programming and development. However, in 1995, IETF released rfc1867, RFC 1867-form-based file upload in HTML, to support file upload. Therefore, the Content-Type type is extended to multipart/form-data to support sending binary data to the server. Therefore, when a POST request is sent, the form

Multipart/form-Data Format

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.