好的,我很困惑。当我执行此CURL请求时,得到响应。响应是代理正在阻止它,但是我确实得到了响应...
curl http://1.2.3.4:8080/v1/digital/foundations/content/articles?presetList=dashboard \
-H 'content-type: application/json' \
-H 'countryCode: US' \
-H 'uuid: 3456789' \
-H 'client_id: 1234'
但是,当我执行此CURL请求时-唯一的更改是-x ""
在开始时添加-CURL请求不会执行。我一直按回车键,而终端不断添加新行。我必须按下CMD-C
才能摆脱困境。
curl -x "" http://1.2.3.4:8080/v1/digital/foundations/content/articles?presetList=dashboard \
-H 'content-type: application/json' \
-H 'countryCode: US' \
-H 'uuid: 3456789' \
-H 'client_id: 1234'
这是结果。看到光标在哪里?它只是一直往下走。
也尝试过这个,但是还是一样...
curl --noproxy "*" \
http://1.2.3.4:8080/v1/digital/foundations/content/articles?presetList=dashboard \
-H 'content-type: application/json' \
-H 'countryCode: US' \
-H 'uuid: 3456789' \
-H 'client_id: 1234'
So why the heck does the first one execute, but the second and third, where I'm trying to disable the proxy, does it simply sit there with me pressing return? I've seen it happen occasionally with other commands too, but I never know what's causing it. Really frustrating.
You should add -v
or --verbose
option to your curl
command to get detailed debugging information printed on your terminal to help you trace source of the problem.
As per man curl
:
-v, --verbose
在操作过程中使卷曲变得冗长。对于调试和查看“引擎盖”下发生的事情很有用。
'>'
以curl发送的行表示“ curl发送的'<'
标题数据”,以curl接收的“ header data”在正常情况下是隐藏的,以行开头的行'*'
表示curl提供的附加信息。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句