Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is is possible to make a cURL request and get the route that is taken (similar to traceroute)

I have a GET request with header params and I want to check which db instance my app is using. Is there a way I could build a cURL request that would tell me where my request is going? I know there is a traceroute command which displays all the server hops. But is there something similar to that using a cURL?

like image 716
DanielD Avatar asked Sep 04 '25 17:09

DanielD


1 Answers

For a slightly better formatted output to stdout

curl --trace-ascii - <host> 
like image 62
trial999 Avatar answered Sep 07 '25 17:09

trial999



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!