D.2.1 –v 옵션을 이용한 상세 조회

    -v 옵션을 이용하면 좀 더 자세하게 조회할 수 있습니다. curl –v www.google.com을 입력합니다.

    -v 옵션을 이용한 상세 조회

    D:\curl-7.56.1-win64-mingw\bin> curl -v www.google.com

    * Rebuilt URL to: www.google.com/

    *   Trying 172.217.25.100......

    * TCP_NODELAY set

    * Connected to www.google.com (172.217.25.100) port 80 (#0)

    > GET / HTTP/1.1

    > Host: www.google.com

    > User-Agent: curl/7.56.1

    > Accept: */*

    >

    < HTTP/1.1 302 Found

    < Cache-Control: private

    < Content-Type: text/html; charset=UTF-8

    < Referrer-Policy: no-referrer

    < Location: http://www.google.co.kr/?gfe_rd=cr&dcr=0&ei=4MztWYf3Oefd8AfSsK7IBw

    < Content-Length: 271

    < Date: Mon, 23 Oct 2017 11:05:04 GMT

    <

    <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">

    <TITLE>302 Moved</TITLE></HEAD><BODY>

    <H1>302 Moved</H1>

    The document has moved

    <A HREF="http://www.google.co.kr/?gfe_rd=cr&amp;dcr=0&amp;ei=4MztWYf3Oefd8AfSsK7IBw">

    here</A>.

    </BODY></HTML>

    * Connection #0 to host www.google.com left intact


     

    내용이 상세하게 조회되는 것을 확인할 수 있습니다.

    신간 소식 구독하기
    뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.