HTTP 15
Bookmarked!This challenge covers how to send specific HTTP requests
In this lab, we're tasked with sending a GET request to /pentesterlab with the key parameter set to "pretty please." This exercise emphasizes the importance of URL-encoding, particularly when dealing with special characters like spaces. Initially, you can solve this challenge using curl, and then proceed to write a script in your preferred programming language. This approach not only helps you understand the mechanics but also allows you to build a reusable collection of scripts.
When constructing your request, you'll notice that spaces must be encoded correctly, typically as %20 or +, to adhere to HTTP protocol requirements. If the space is not encoded, the server will respond with a "Bad Request" error because the HTTP request format will be broken. By correctly encoding the space, we ensure the request is well-formed and successfully retrieve the key for the challenge. This task underscores the necessity of understanding and applying URL-encoding in web requests.