🔗

How to debug url request

Using cURL

$ curl -L -I -v fedex.com

Which -L makes it follow redirections, otherwise you can only reach the 301 page.

-I can hide all response body, which is very very verbose.

-v makes the progress talkative, shows details of this request including DNS CA and so on.

or you can:

$ curl -L -s -o /dev/null -v fedex.com

Which send the response body output to the hell.


在我们一生中,命运赐予我们每个人三个导师,三个朋友,三名敌人,三个挚爱。但这十二人总是不以真面目示人,总要等到我们爱上他们、离开他们、或与他们对抗时,才能知道他们是其中哪种角色。