Using the -X
flag with whatever HTTP verb you want:
curl -X PUT -d argument=value -d argument2=value2 http://localhost:8080
This example also uses the -d
flag to provide arguments with your PUT request.
More Related Contents:
- What exactly is RESTful programming?
- HTTP GET with request body
- 400 BAD request HTTP error code meaning?
- SOAP vs REST (differences)
- HTTP POST with URL query parameters — good idea or not?
- What is the proper REST response code for a valid request but an empty data?
- HTTP response code for POST when resource already exists
- What is RESTful programming?
- How to make remote REST call inside Node.js? any CURL?
- powershell invoke-restmethod multipart/form-data
- Designing URI for current logged in user in REST applications
- How to use cURL to send Cookies?
- PHP multipart form data PUT request?
- Update an entire resource collection in a REST way
- When is it appropriate to respond with a HTTP 412 error?
- What REST PUT/POST/DELETE calls should return by a convention?
- RESTful – What should a DELETE response body contain
- Place API key in Headers or URL
- Curl retry mechanism
- Response status code for searches in REST APIs
- Status code when deleting a resource using HTTP DELETE for the second time
- How to POST JSON Data With PHP cURL?
- Use of PUT vs PATCH methods in REST API real life scenarios
- Which status code should I use for failed validations or invalid duplicates?
- Security of REST authentication schemes
- Persistent/keepalive HTTP with the PHP Curl library?
- Best practice for partial updates in a RESTful service
- Spring @ExceptionHandler does not work with @ResponseBody
- What are the best/common RESTful url verbs and actions?
- Swagger UI passing authentication token to API call in header