Inspect curl Requests headers

$ curl -w '\ncontent_type=%{content_type}\nfilename_effective=%{filename_effective}\nftp_entry_path=%{ftp_entry_path}\nhttp_code=%{http_code}\nhttp_connect=%{http_connect}\nlocal_ip=%{local_ip}\nlocal_port=%{local_port}\nnum_connects=%{num_connects}\nnum_redirects=%{num_redirects}\nredirect_url=%{redirect_url}\nremote_ip=%{remote_ip}\nremote_port=%{remote_port}\nsize_download=%{size_download}\nsize_header=%{size_header}\nsize_request=%{size_request}\nsize_upload=%{size_upload}\nspeed_download=%{speed_download}\nspeed_upload=%{speed_upload}\nssl_verify_result=%{ssl_verify_result}\ntime_appconnect=%{time_appconnect}\ntime_connect=%{time_connect}\ntime_namelookup=%{time_namelookup}\ntime_pretransfer=%{time_pretransfer}\ntime_redirect=%{time_redirect}\ntime_starttransfer=%{time_starttransfer}\ntime_total=%{time_total}\nurl_effective=%{url_effective}\n\n' -o /dev/null -s 'https://h1bsalary.online'
curl -L -v -s -o /dev/null google.de
  • -L, --location follow redirects
  • -v, --verbose more output, indicates the direction
  • -s, --silent don’t show a progress bar
  • -o, --output /dev/null don’t show received body

Or the shorter version:

 curl -Lvso /dev/null google.de

 

You may also like...

(1) Comment

  1. I90Runner

    ~
    $ curl -w ‘\ncontent_type=%{content_type}\nfilename_effective=%{filename_effecti ve}\nftp_entry_path=%{ftp_entry_path}\nhttp_code=%{http_code}\nhttp_connect=%{ht tp_connect}\nlocal_ip=%{local_ip}\nlocal_port=%{local_port}\nnum_connects=%{num_ connects}\nnum_redirects=%{num_redirects}\nredirect_url=%{redirect_url}\nremote_ ip=%{remote_ip}\nremote_port=%{remote_port}\nsize_download=%{size_download}\nsiz e_header=%{size_header}\nsize_request=%{size_request}\nsize_upload=%{size_upload }\nspeed_download=%{speed_download}\nspeed_upload=%{speed_upload}\nssl_verify_re sult=%{ssl_verify_result}\ntime_appconnect=%{time_appconnect}\ntime_connect=%{ti me_connect}\ntime_namelookup=%{time_namelookup}\ntime_pretransfer=%{time_pretran sfer}\ntime_redirect=%{time_redirect}\ntime_starttransfer=%{time_starttransfer}\ ntime_total=%{time_total}\nurl_effective=%{url_effective}\n\n’ -o /dev/null -s ‘ https://h1bsalary.online

    content_type=text/html
    filename_effective=nul
    ftp_entry_path=
    http_code=403
    http_connect=000
    local_ip=192.168.60.155
    local_port=57015
    num_connects=1
    num_redirects=0
    redirect_url=
    remote_ip=104.27.155.156
    remote_port=443
    size_download=155
    size_header=436
    size_request=80
    size_upload=0
    speed_download=248.000
    speed_upload=0.000
    ssl_verify_result=0
    time_appconnect=0.485
    time_connect=0.079
    time_namelookup=0.063
    time_pretransfer=0.532
    time_redirect=0.000
    time_starttransfer=0.625
    time_total=0.625
    url_effective=https://h1bsalary.online/

Leave a Reply

Your email address will not be published. Required fields are marked *