Java-urlencoder.encode, when is it necessary?

Source: Internet
Author: User

When you want to use a URL as a parameter of another URL, for example: When the user clicks on the button of the transaction, you find that you have not logged in to jump to the login page and take a parameter to record the user is the transaction page you wish to visit before logging in, so that you can return to the trading page once the login is complete. This time we need to put the URL of the transaction page as a parameter after the URL of the login page, because the parameter URL with a special symbol, the need to escape the character of the help to complete, which requires encode URL. Now a lot of popular Outh certification (for example, a third-party website can use QQ login) that QQ login itself it needs to know the login after the completion of the page (this page is QQ own).

Java-urlencoder.encode, when is it necessary?

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.