How do I send a OPTIONS request using Curl?

To make an OPTIONS request with Curl, you must pass the -X OPTIONS command-line parameter to the Curl. Browsers send OPTIONS requests when making a CORS request to another origin. The OPTIONS request does not return any data. All information is returned in the response headers. In this Curl OPTIONS request example, we send an OPTIONS request to the ReqBin echo URL. Click Run to execute the Curl OPTIONS request online and see the results.
Loading...