Using the -X
flag with whatever HTTP verb you want:
curl -X PUT -d arg=val -d arg2=val2 localhost:8080
This example also uses the -d
flag to provide arguments with your PUT request.
Related Posts:
- How do I POST JSON data with cURL?
- How do I POST JSON data with cURL?
- How to use cURL to send Cookies?
- How do I POST JSON data with cURL?
- HTTP GET with request body
- What is the difference between POST and PUT in HTTP?
- What is the difference between POST and PUT in HTTP?
- SOAP vs REST (differences)
- Use of PUT vs PATCH methods in REST API real life scenarios
- Getting “java.io.IOException: An existing connection was forcibly closed by the remote host”
- How to define the basic HTTP authentication using cURL correctly?
- How to define the basic HTTP authentication using cURL correctly?
- What is the correct JSON content type?
- What is the correct JSON content type?
- What is the correct JSON content type?
- PHP + curl, HTTP POST sample code?
- What’s the difference between text/xml vs application/xml for webservice response
- What’s the difference between “Request Payload” vs “Form Data” as seen in Chrome dev tools Network tab
- PHP cURL HTTP PUT
- Can PHP cURL retrieve response headers AND body in a single request?
- Setting Curl’s Timeout in PHP
- How to POST JSON Data With PHP cURL?
- curl: no URL specified for restful api
- HTTP request on localhost failing
- How can I use CURLOPT_USERPWD in wp_remote_post?
- Is curl required?
- Does WordPress perform better with curl installed?
- Get full page HTML for a non-public WordPress page
- What is the difference between a URI, a URL and a URN?
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- Is there a way to follow redirects with command line cURL?
- How to use Python to execute a cURL command?
- Is 418 “I’m a teapot” really an HTTP response code?
- How to use the curl command in PowerShell?
- “Cannot GET /” with Connect on Node.js
- How to use java.net.URLConnection to fire and handle HTTP requests
- What’s the difference between using application/csv vs text/csv? [duplicate]
- How is an HTTP POST request made in node.js?
- What are all the possible values for HTTP “Content-Type” header?
- Flask example with POST
- curl: (35) SSL connect error
- curl POST format for CURLOPT_POSTFIELDS
- How to call a REST web service API from JavaScript?
- HTTP Error 411, The request must be chunked or have a content length
- Curl not recognized as an internal or external command, operable program or batch file
- How to send HTTP request in java?
- Why am I suddenly getting a “Blocked loading mixed active content” issue in Firefox?
- Getting error in Curl – Peer certificate cannot be authenticated with known CA certificates
- Are HTTP headers case-sensitive?
- What is the relationship between WCF, Rest and SOAP?
- “Cross origin requests are only supported for HTTP.” error when loading a local file
- What is ‘xmlhttp.setRequestHeader();’ and in which situations is it used?
- cURL equivalent in Node.js?
- REST web service WSDL?
- Postman Resolving “Invalid CORS request” for a POST Request
- Run Rsync from Python [duplicate]
- Chrome Version 44.0.2403.89 m is trying to force HTTPS
- Remove rel=shortlink from HTTP header
- WordPress API returns empty page when page is less than X-WP-TotalPages
- Create a WordPress post using curl comand from Linux console?
- Access general settings trough wordpress files
- Download failed cURL error 7: . Can’t update anything
- Failed to open stream: HTTP request failed! in \wamp\www\wordpress\wp-includes\class-http.php on line 929
- How to create a post using REST API with sending data as a JSON body?
- WordPress curl timing out and saying ‘Moved Permanently’
- Why does wp_remote_post returns an empty body response on certain endpoints?
- How to send file by wp_remote_post?
- Changing HTTP to HTTPS
- Use WP admin AJAX url to hide API key
- Changed the url into https and now can’t access site admin
- Errors on a single host using wp_remote_get() unless sslverify is set to false
- My site doesn’t redirect from HTTP to HTTPS
- REST API works in browser and via AJAX but fails via cURL
- Page can’t hand request – HTTP ERROR 500 – when updating something
- HTTP error when uploading an image
- cURL request to plugin repository fails 403
- Broken css on mobile phones only on https
- Curl error while creating user
- Call external API in wordpress based on user input
- Trouble when I try to connect to WordPress
- Get “HTTP/1.1 406 Not Acceptable” when accesing my website with Delphi Indy Control
- Redirecting specific sites to HTTP in WordPress Multisite
- Hide response returned from WordPress REST API call
- mysqli_query(): MySQL server has gone away for Curl Request
- Implications of not completing all tasks when switching to HTTPS
- Contactform7: display results from CURL
- Require advice handling a URL redirect from a Third Party. URL Params need to populate and then forward to payment
- Redirect HTTP request to HTTPS request
- Update products with curl (bash)
- WordPress HTTP 500 Error “page isn’t working”
- My WP Website Shows HTTP ERROR 500
- Moving site from HTTP to HTTPS
- Accessing content from third party as native posts in WordPress
- Authentication over CURL
- Is it safe to use PUT and DELETE requests
- Duplicator live to wamp https to http
- rest_cannot_create_user – Sorry, you are not allowed to create new users. CURL WORDPRESS REST API
- cURL External API request displays content above other content on page
- IIS 7.5 (Windows 7) – HTTP Error 401.3 – Unauthorized
- How to make wireshark filter POST-requests only?