Execute the following curl command in the Artifactory VM to validate the HTTP OPTIONS method status:
If the HTTP OPTIONS method is disabled you will expect to see the following output:
If the HTTP OPTIONS method is enabled you will expect to see the following output:
curl -i -X OPTIONS http://localhost:8081
If the HTTP OPTIONS method is disabled you will expect to see the following output:
HTTP/1.1 403 Cache-Control: private Content-Type: text/html;charset=utf-8 Content-Language: en Content-Length: 431 Date: Wed, 04 Jan 2023 09:50:40 GMT <!doctype html><html lang="en"><head><title>HTTP Status 403 - Forbidden</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 403 - … …
If the HTTP OPTIONS method is enabled you will expect to see the following output:
root@f613574128ff:~# curl -i -X OPTIONS http://localhost:8081 HTTP/1.1 200 Allow: OPTIONS, GET, HEAD, POST Content-Length: 0 Date: Wed, 04 Jan 2023 09:43:28 GMT