可以发出cURL请求并获取所采用的路由(类似于traceroute) [英] Is is possible to make a cURL request and get the route that is taken (similar to traceroute)

查看:69
本文介绍了可以发出cURL请求并获取所采用的路由(类似于traceroute)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有标头参数的GET请求,我想检查我的应用程序正在使用哪个数据库实例.有没有一种方法可以构建一个cURL请求,该请求可以告诉我请求的去向?我知道有一个 traceroute 命令显示所有服务器跃点.但是有没有类似于使用cURL的东西?

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?

推荐答案

用于将格式更好的输出输出到stdout

For a slightly better formatted output to stdout

curl --trace-ascii - <host> 

这篇关于可以发出cURL请求并获取所采用的路由(类似于traceroute)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆