Post Requests

In addition to sending GET requests, the Website Unblocker supports also sending POST requests to a destination web site.

Example 1 - Sending a standard POST request

To send a standard POST request using curl, you can use the following command:

curl -k -x username:[email protected]:5959 [example.site.com] -d "param1=value1&param2=value2"
  • -d "param1=value1&param2=value2": The data being sent in the POST request.

Example 2 - Sending a POST request with JSON data

To send a POST request with JSON data using curl, you can use the following command:

curl -k -x username:[email protected]:5959 [example.site.com] -d '{"test2": "value1", "param2": "value2"}' -H 'x-netnut-custom-header: true' -H "Content-Type: application/json" -k -v
  • -d '{"test2": "value1", "param2": "value2"}' : The JSON data being sent in the POST request.

  • -H 'x-netnut-custom-header: true' : Set the custom header for the request.

  • -H "Content-Type: application/json" : Specifies the content type of the data being sent as JSON.

Last updated