This challenge covers how to send specific HTTP requests

< 1 Hr.
HTTP Badge


In this lab, you are tasked with sending a POST request to the /pentesterlab endpoint. The body of this request should contain XML with the key value set to "please". Additionally, you need to set the Content-Type header to application/xml. This challenge is designed to help you become familiar with crafting and sending HTTP requests with specific content types and payloads.

We recommend solving this challenge initially using curl. Once you have successfully sent the request with curl, you can then write a script in your preferred programming language to automate the process. This will be beneficial for creating a reusable collection of scripts for future use. During the video, you'll learn how to handle issues related to double quotes in the XML body and how to properly encode these characters to avoid breaking the parser.

Want to learn more? Get started with PentesterLab Pro! GO PRO