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
- Should a 502 HTTP status code be used if a proxy receives no response at all?
- What is the difference between a URI, a URL and a URN?
- How do I get a YouTube video thumbnail from the YouTube API?
- HTTP Status 504
- What is the difference between POST and GET? [duplicate]
- Chrome hangs after certain amount of data transfered – waiting for available socket
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- curl: (60) SSL certificate problem: unable to get local issuer certificate
- HTTP POST and GET using cURL in Linux [duplicate]
- curl: (60) SSL certificate problem: unable to get local issuer certificate
- Do I need Content-Type: application/octet-stream for file download?
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- How do I install and use cURL on Windows?
- How to redirect all HTTP requests to HTTPS
- Is there a way to follow redirects with command line cURL?
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- How to fix “SSL certificate problem: self signed certificate in certificate chain” error?
- Problem HTTP error 403 in Python 3 Web Scraping
- How to send a header using a HTTP request through a cURL call?
- application/x-www-form-urlencoded or multipart/form-data?
- How to use Python to execute a cURL command?
- Problem HTTP error 403 in Python 3 Web Scraping
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- Why Puma listen on ‘tcp://localhost:3000’ instead of ‘http://localhost:3000’
- How can I set the request header for curl?
- application/x-www-form-urlencoded or multipart/form-data?
- How to use Python to execute a cURL command?
- Is 418 “I’m a teapot” really an HTTP response code?
- How to download a file over HTTP?
- How to use the curl command in PowerShell?
- https connection using CURL from command line
- performing HTTP requests with cURL (using PROXY)
- How to download a file over HTTP?
- “Cannot GET /” with Connect on Node.js
- “CAUTION: provisional headers are shown” in Chrome debugger
- Axios Delete request with body and headers?
- @ converted to %40 in HTTPPost request
- System.Net.Http: missing from namespace? (using .net 4.5)
- Curl command for https ( SSL )
- How to use java.net.URLConnection to fire and handle HTTP requests
- What’s the difference between a POST and a PUT HTTP REQUEST?
- How to display request headers with command line curl
- What does HTTP/1.1 302 mean exactly?
- Error: No default engine was specified and no extension was provided
- How to capture cURL output to a file?
- Significance of port 3000 in Express apps
- Using cURL with a username and password?
- Response to preflight request doesn’t pass access control check
- What is the curl error 52 “empty reply from server”?
- How do I send a POST request with PHP?
- Custom Tumblr theme wont save because of non-https urls?
- Why is it said that “HTTP is a stateless protocol”?
- What’s the difference between using application/csv vs text/csv? [duplicate]
- How to fix libeay32.dll was not found error
- Can curl make a connection to any TCP ports, not just HTTP/HTTPS?
- Access-Control-Allow-Origin Multiple Origin Domains?
- cURL to show response headers after submiting a file
- How to handle ETIMEDOUT error?
- How is an HTTP POST request made in node.js?
- curl: (6) Could not resolve host: google.com; Name or service not known
- Call to undefined function curl_init().?
- Uri not Absolute exception getting while calling Restful Webservice
- How do I get a YouTube video thumbnail from the YouTube API?
- How to download HTTP directory with all files and sub-directories as they appear on the online files/folders list?
- What are all the possible values for HTTP “Content-Type” header?
- Flask example with POST
- wget/curl large file from google drive
- CURL ERROR: Recv failure: Connection reset by peer – PHP Curl
- curl: (35) SSL connect error
- cURL error 60: SSL certificate: unable to get local issuer certificate
- Binary Data Posting with curl