How to encode URL in JS?

Small tutorial with code examples about how to encode URL in JavaScript safely
31 October 2017   2312

For example, you have and URL that need to be encoded safely using JavaScript such way such that it can be put into a GET string.

var myUrl = "http://example.com/index.html?param=1&anotherParam=2";
var myOtherUrl = "http://example.com/index.html?url=" + myUrl;

Use the built-in function encodeURIComponent(str) and encodeURI(str)

var myOtherUrl = 
       "http://example.com/index.html?url=" + encodeURIComponent(myUrl);

ACME Protocol to be Internet Standard Now

ACME protocol is used to organize the interaction between the certification center and the web server to automate the receipt and maintenance of certificates
12 March 2019   192

The Internet Engineering Task Force (IETF), which develops Internet protocols and architecture, completed the RFC for the ACME (Automatic Certificate Management Environment) protocol and published its associated specification under RFC 8555 id. The RFC received the status of the “Proposed Standard”, after which the work of giving the RFC the status of a draft standard (Draft Standard), which actually means the full stabilization of the protocol and taking into account all the comments made.

ACME protocol is used to organize the interaction between the certification center and the web server, for example, to automate the receipt and maintenance of certificates. Requests are transmitted in JSON format over HTTPS. The second version of the ACMEv2 protocol is standardized, providing support for masks in certificates, providing an improved authorization mechanism, supporting resource renaming operations and offering a new method for checking domain ownership TLS-SNI-02.