amazon web services - What needs to be enabled to support curl -I? -
i have aws instance failing custom health check. if hit health check directly, passes:
curl -v http://localhost:8080/batch/health
produces 200/ok reponse expected:
* connect() localhost port 8080 (#0) * trying ::1... connected * connected localhost (::1) port 8080 (#0) > /batch/health http/1.1 > user-agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 nss/3.16.2.3 basic ecc zlib/1.2.3 libidn/1.18 libssh2/1.4.2 > host: localhost:8080 > accept: */* > < http/1.1 200 ok < server: apache-coyote/1.1 < etag: "0d41d8cd98f00b204e9800998ecf8427e" < content-type: text/plain;charset=iso-8859-1 < content-length: 0 < date: wed, 19 aug 2015 14:38:40 gmt < * connection #0 host localhost left intact * closing connection #0
now aws troublshooting checklist recommends using curl -i, retrieves headers. , indeed, fails on instance:
curl -i "http://localhost:8080/batch/health"
produces:
http/1.1 405 method not allowed server: apache-coyote/1.1 allow: content-type: text/html;charset=utf-8 content-length: 1047 date: wed, 19 aug 2015 14:41:12 gmt
but don't understand why. both methods using http get. needs enabled support headers-only response?
not looking instructions on needs change in tomcat, (1) difference here , (2) english needs happen, know i'm looking in google.
Comments
Post a Comment