curl tagged requests and articles

Categorized request examples and articles tagged with [curl] keyword
Curl Request With Bearer Token Authorization Header
This page shows how to make a Curl request with Bearer Token Authorization header. Try it yourself with ReqBin online Curl client.
curl get-request bearer-token authorization authorization-header request-header

Get URL with Curl
Curl command to send a GET request to a URL to retrieve page HTML and HTTP headers.
curl get-html get-url get-request

Curl Command to POST a JSON String
This page shows how to post a JSON string to an HTTP API endpoint using Curl. Try It yourself Online!
curl json post-json post-request rest-api request-header

Curl Command to POST a Form
This page shows how to submit URL encoded form data with the Curl command. Try it yourself with ReqBin online Curl Client.
curl post-request post-form submit-form urlencoded form

Curl Command to GET a JSON String
An example of how to request a JSON with Curl.
curl json get-json get-request rest-api request-header

Curl Command to POST an XML String
This page shows how to send an XML string with a custom Content-Type: application/xml header.
curl post-request post-xml xml soap-api request-header

Curl Command With Basic Server Authentication Header
This page shows how to send a GET request to a URL and provide credentials for basic server authentication in request headers.
curl basic-authentication server-authentication get-request authorization

OPTIONS Request with Curl
This page shows how to send an OPTIONS request with Curl. Browsers send OPTIONS requests when making a CORS request to another origin.
curl cors options-request options-method options

Curl Command With Close Connection Header
This page shows how to send a Curl request to the server and indicate that the client doesn't want to keep the connection open by sending 'Connection: close' header.
curl head-request head-method connection-header connection-close

Curl Command to GET an XML String
An example of how to request an XML with Curl.
curl xml get-request get-xml soap-api request-header

Send Custom Headers with Curl
This page shows how to send a Curl command with custom request headers.
curl get-request custom-header request-header

Curl Command With Keep-Alive Connection Header
An example of a Curl request sent to the server to establish a persistent connection with the Connection and Keep-Alive headers. Try it with ReqBin Curl online.
curl connection-header head-request keep-alive request-header

Send CORS Request with Credentials with Curl
This page demonstrates a Curl command to send a CORS request with the Origin header and HTTP cookies (Cross-Origin Resource Sharing request).
curl cors origin-header cookies credentials authorization

Curl Command with CORS Headers
This page shows how to send a Curl request with CORS Origin header (Cross-Origin Resource Sharing request).
curl cors get-request request-header get-method

Curl PATCH JSON String
An example of a Curl command for sending a PATCH request with JSON content string to the REST API endpoint. Try it yourself with ReqBin online Curl Client.
curl json patch-request path-method rest-api submit-data

Curl Command with Cookies in Header
This page shows how to send a Curl request with HTTP cookies in the request header.
curl cookies get-request request-header get-method

DELETE Request Curl Example
An example of how to send a Curl command with DELETE request to the REST API endpoint.
curl delete-request delete-method rest-api

Curl GET JSON Example
This page shows how to send a Curl command to get JSON from the server.
curl json get-request get-json rest-api get-method request-header

Curl Command with HTTP Headers to Prevent Caching
An example of Curl command with HTTP headers to prevent caching that works across all servers and proxies.
curl caching prevent-caching request-header get-request get-method

Curl PUT JSON Example
An example of Curl command for updating a resource on the server by sending a PUT request with JSON string to the REST API endpoint.
curl json put-request rest-api put-method submit-data

Curl REST API GET Example
An example of a Curl command for sending a GET request to the REST API endpoint to get a JSON. Try it yourself with ReqBin online Curl Client.
curl json get-request request-header rest-api

Curl Command to POST JSON String With Basic Authentication
This page shows how to send a JSON string with Basic authentication header with Curl.
curl json basic-authentication authentication-header request-header authorization rest-api

Curl Command to POST JSON String with Bearer Token Authorization Header
This page shows how to send a JSON string with a Bearer token authorization header with Curl.
curl json post-request bearer-token authorization authorization-header post-json request-header

Curl Command for TRACE
Testing for HTTP TRACE method
curl http-method trace-request trace-method

curl -d
A live example of the Curl command for sending data in POST request with the correct HTTP header. Try it yourself with ReqBin online Curl client.
curl post-form post-request request-header urlencoded curl-command post-method submit-data http-header

Curl POST Form
An example of POST-ing a form with Curl with 'Content-Type: application/x-www-form-urlencoded' HTTP header. Try it yourself with ReqBin online Curl client.
curl post-form post-request urlencoded request-header post-method

Posting JSON to the Server with Curl
Curl command for posting JSON data to the server as a part of the request. The 'Content-Type: application/json' header indicates that we are sending a JSON. The 'Accept: application/json' header tells the server that we can accept JSON.
curl json post-request request-header rest-api post-json

Curl POST JSON
This is a live example of posting a JSON string to a REST API endpoint using Curl. Try it yourself with ReqBin online Curl client.
curl json post-request request-header rest-api post-json

Curl POST JSON Example
This page shows how to send a Curl command with JSON string
curl json post-request request-header post-json rest-api

Curl with Authorization Header Example
This page shows how to send a Curl request with Bearer Token authorization header.
curl authorization-header request-header bearer-token

OPTIONS Request by Curl
An Example of Sending OPTIONS Request with Curl
curl options-request origin-header request-header http-headers options-method

Curl GET Request
An example of making a GET request with Curl.
curl get-request request-header

GET JSON with Curl
This is a live example of retrieving a JSON string from a REST API endpoint using Curl. Try it yourself with ReqBin online Curl client.
curl json get-request rest-api request-header

Curl POST Request
An example of making a POST request with JSON data to the REST API endpoint with Curl. Try it yourself with ReqBin online Curl Client.
curl json post-data post-request request-header

curl -u
A live example of sending Curl command with Basic server authentication header (credentials are provided with -u or --user command-line argument). Try it yourself with ReqBin online Curl client.
basic-authentication http-header curl json authorization request-header curl-command

Convert Curl to HTTP POST Request
Convert Curl command to the HTTP POST request. See the POST Header and body on the Raw tab.
curl post-method rest-api post-request json

Convert Curl to HTTP GET Request
Convert Curl command to the HTTP GET request. See the GET Header and body on the Raw tab.
curl get-method get-request rest-api

Convert Curl to POST JSON Request
Convert Curl command to the HTTP POST JSON request. See the POST Header and JSON on the Raw tab.
curl json rest-api post-request post-method