goebelmasse

Print MIME-header for a given HTTP or HTTPS URI

Dec 10th, 2016 (edited)
622
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. ########################################################################
  3. #
  4. # mime-header
  5. # Print MIME-header for a given HTTP or HTTPS URI.
  6. #
  7. # Requires curl.
  8. #
  9. # $Id: mime-header,v 1.5 2020/11/26 13:43:43 elias Exp $
  10. #
  11. ########################################################################
  12.  
  13. # Paranoia line
  14. PATH=/bin:/usr/bin
  15.  
  16. # User-agent
  17. # internet exploiter 10 for best results from spammy sites ;)
  18. UA='Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)'
  19.  
  20. for uri
  21. do
  22.     curl -s -A "$UA" -I "$uri" | sed '/^\s*$/d'
  23. done
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×