使用curl检查每个URL重定向(HTTP状态码301/302)

curl -sLkIv --stderr - https://t.co/2rQjHfptZ8 
-s: silences the output when piped to a different command
 -L: follow every redirect 
-k: ignores certificate errors
-I: just request the headers
 -v: be verbose
 --stderr - : redirect stderr to stdout https://t.co/2rQjHfptZ8
.

0

linux命令:curl -sLkIv --stderr - http://example.org | grep -i location: | awk {'print $3'} | sed '/^$/d' '/^$/d' sed | $3'} {'print awk | location: -i grep | http://example.org - --stderr -sLkIv curl curl -sLkIv --stderr - http://example.org | grep -i location: | awk {'print $3'} | sed '/^$/d'rootopen.com
linux命令:curl -sLkIv --stderr - http://example.org | grep -i location: | awk {'print $3'} | sed '/^$/d' '/^$/d' sed | $3'} {'print awk | location: -i grep | http://example.org - --stderr -sLkIv curl curl -sLkIv --stderr - http://example.org | grep -i location: | awk {'print $3'} | sed '/^$/d'rootopen.com
bxpm 2019-03-23 19:22:00
输出
INPUT:
curl -sLkIv --stderr - https://t.co/2rQjHfptZ8 | grep -i location: | awk {'print $3'} | sed '/^$/d'
OUTPUT:
https://imgur.com/gallery/FZbjmrm

评论

相关推荐
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

热门文章