Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- ########################################################################
- #
- # mime-header
- # Print MIME-header for a given HTTP or HTTPS URI.
- #
- # Requires lynx.
- #
- # $Id: mime-header,v 1.6 2022/10/30 10:04:25 elias Exp $
- #
- ########################################################################
- # Paranoia line
- PATH=/bin:/usr/bin
- # User-agent
- # internet exploiter 10 for best results from spammy sites ;)
- UA='Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)'
- for uri
- do
- lynx -useragent "$UA" -mime_header "$uri" 2>/dev/null |
- sed '/^\s*$/q' |
- sed '/^\s*$/d'
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement