Curl: GET and POST Request

GET Request

To call a GET request to localhost:8080/path

Shell

GET Request with Parameter Query

To call a GET request to localhost:8080/path?param1&value1&param2=value2

Shell

Use wget:

Shell

POST Request (application/x-www-form-urlencoded)

To call a POST request to localhost:8080/path

Shell

POST Request with Query Parameters

Shell

POST Request (multipart/form-data)

To call a POST request to localhost:8080/path

Shell

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *