[weblogic@hkczjjapp ~]$ curl -v -X OPTIONS http://11.1.198.89:9001/maccs/1001/ma_user_getwebinfo.do-----完整的请求地址
[weblogic@hkczjjapp ~]$ curl -v -X OPTIONS http://11.1.198.89:9001/maccs/1001/ma_user_getwebinfo.do * About to connect() to 11.1.198.89 port 9001 (#0) * Trying 11.1.198.89... connected * Connected to 11.1.198.89 (11.1.198.89) port 9001 (#0) > OPTIONS /maccs/1001/ma_user_getwebinfo.do HTTP/1.1 > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2 > Host: 11.1.198.89:9001 > Accept: */* > < HTTP/1.1 200 OK < Date: Fri, 12 Jul 2019 07:30:18 GMT < Content-Length: 0 < Allow: GET, HEAD, POST, TRACE, OPTIONS-----允许的http方法 < X-Powered-By: Servlet/2.5 JSP/2.1 < * Connection #0 to host 11.1.198.89 left intact * Closing connection #0
原文:https://www.cnblogs.com/chunxiaozhang/p/11176193.html