Separate hostname and path in cURL

和自甴很熟 提交于 2021-01-27 19:09:50

问题


Is there a way to separate the hostname and path when using cURL? I would like to make a request to the server itself, not on a particular resource, as described below by IETF:

The four options for Request-URI are dependent on the nature of the request. The asterisk "*" means that the request does not apply to a particular resource, but to the server itself, and is only allowed when the method used does not necessarily apply to a resource. One example would be

  OPTIONS * HTTP/1.1

http://tools.ietf.org/html/rfc2616#section-5.1.2

Similar to this question: https://stackoverflow.com/q/12323445/594696

来源:https://stackoverflow.com/questions/16423999/separate-hostname-and-path-in-curl

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!