Something you can't understand when you modify the request header during curlpost

Source: Internet
Author: User
When curlpost is used to modify the request header, it cannot be understood. First, let's talk about my understanding of the form label. form & nbsp; label & nbsp; has an attribute: & nbsp; enctype, which has several values, two frequently-used multipartform-dataapplicationx-www-form-urlencoded html sections cannot be understood when setting different enctype & lt curl post to modify the request header.
Let me first explain my understanding of form labels.

The form tag has an attribute of enctype.
It has several values, and two values are frequently used.
Multipart/form-data
Application/x-www-form-urlencoded

Html
Set different enctype when submitting














Multipart/form-data
When submitting the form
Data is separated and not merged into a row.




Application/x-www-form-urlencoded
When submitting the form
Data is merged.




When I was working on curl
Content-Type: application/x-www-form-urlencoded
I separate them in this way.
Why?



Curl is used to simulate post to submit a data
On the submitted page
Http://www.web-youhua.com/html/web-youhua-198603159.html
The requested address is
Http://www.web-youhua.com/include/comment_save.asp? Comment_add = add

Please try again ........


------ Solution --------------------
If
The value is in English ......
------ Solution --------------------
Is there any difference?
Both are valid formats and are generally separated for long content.
Various browsers also have their own processing methods
------ Solution --------------------
I have never paid attention to this stuff.

Related Article

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.