Springboot built-in default boot Tomcat container encounters the valid characters is defined in RFC 7230 and RFC 3986 "

Source: Internet
Author: User
Tags rfc

Url:

http://127.0.0.1:8081/test?urlcount=2&countcname1= parameter name 1&countname1= parameters 1&countcname2= argument name 2& Countname2= Parameter 2

Back-end simulation of POST request path error:

The valid characters is defined in RFC 7230 and RFC 3986 "

The reason is because the URL contains Chinese.

To escape directly in Chinese:

Urlencoder.encode (parameter name 1, "Utf-8")

Urlencoder.encode (Parameter 1, "Utf-8")

After escaping to:

Http://127.0.0.1:8081/test?urlcount=2&countcname1=%E5%90%8D%E7%A7%B01&countname1=%E5%8F%82%E6%95%B01 &countcname2=%e5%90%8d%e7%a7%b02&countname2=%e5%8f%82%e6%95%b02

Simulation is normal.

Springboot built-in default boot Tomcat container encounters the valid characters is defined in RFC 7230 and RFC 3986 "

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.