HTTP 39

This challenge covers how to send specific HTTP requests

PRO
Tier
Easy
< 1 Hr.
2109
HTTP Badge

Course


In this lab, the objective is to send a POST request to the endpoint /pentesterlab. The body of the request should be a JSON containing {"key": "please"}, and the Content-Type header must be set to application/json. Initially, you are encouraged to use curl to achieve this, providing a simple yet effective way to understand the process.

Following the successful completion with curl, you should then write a script in your favorite programming language to automate this task. This approach not only helps you grasp the fundamentals but also equips you with reusable code snippets for future challenges. During the video, you will also learn how to handle errors in JSON formatting by encoding certain characters, ensuring a valid request is sent to the server.

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