Which encoding is used to convert a URL into valid ASCII format so it can be safely transmitted over HTTP?

Prepare for the Certified Ethical Hacker Version 11 Exam. Study with comprehensive questions and explanations. Equip yourself with the skills needed for success!

Multiple Choice

Which encoding is used to convert a URL into valid ASCII format so it can be safely transmitted over HTTP?

Explanation:
URL encoding is used to convert a URL into valid ASCII format so it can be safely transmitted over HTTP. It does this by replacing unsafe or reserved characters with a percent sign followed by two hexadecimal digits (for example, a space becomes %20). Non‑ASCII characters are first turned into their UTF‑8 bytes and then percent‑encoded, ensuring the entire URL stays within ASCII. This is specifically what you need for safe transport of URLs; HTML encoding escapes characters for HTML rendering, Base64 is for binary data, and UTF‑8 is a general text encoding, not a mechanism to make URLs ASCII-safe.

URL encoding is used to convert a URL into valid ASCII format so it can be safely transmitted over HTTP. It does this by replacing unsafe or reserved characters with a percent sign followed by two hexadecimal digits (for example, a space becomes %20). Non‑ASCII characters are first turned into their UTF‑8 bytes and then percent‑encoded, ensuring the entire URL stays within ASCII. This is specifically what you need for safe transport of URLs; HTML encoding escapes characters for HTML rendering, Base64 is for binary data, and UTF‑8 is a general text encoding, not a mechanism to make URLs ASCII-safe.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy