curl-cors tagged requests and articles

Categorized request examples and articles tagged with [curl-cors] keyword
Curl OPTIONS Request
An example of sending an OPTIONS request with Curl. Browsers send OPTIONS requests when making a CORS request to another origin. To make an OPTIONS request using Curl, you must pass the -X OPTIONS command-line parameter to the Curl. The OPTIONS request does not return any data. All information is returned in the response headers.

Curl CORS Request
An example of sending a Curl request with the CORS Origin header (Cross-Origin Resource Sharing request). For CORS requests, the Origin header indicates where the request is coming from. In this Curl CORS Request example, the Origin header is passed to the server with the -H "Origin: https://example.reqbin.com" command-line option.

Curl Request With Credentials
Sample Curl request with Origin CORS request header and authorization cookie. In this Curl Request With Credentials example the Origin request header is passed with the -H "Origin: https://example.reqbin.com" command-line parameter and the cookie is passed with the --cookie "authCookie = my_auth_cookie" parameter.