cURL hanging for 15 seconds when sending HEAD requests

前端 未结 1 1556
夕颜
夕颜 2021-01-02 02:42

Background

I\'ve been timing some HTTP requests via the CLI using time and tools such as wget and curl as follows:

相关标签:
1条回答
  • 2021-01-02 03:14

    Why don't you just use the -I option?

    -I/--head
        (HTTP/FTP/FILE) Fetch the HTTP-header only! HTTP-servers feature
        the command HEAD which this uses to get nothing but  the  header
        of  a  document.  When used on a FTP or FILE file, curl displays
        the file size and last modification time only
    
    0 讨论(0)
提交回复
热议问题