gpt4 book ai didi

linux - cURL——解决问题

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:44:40 27 4
gpt4 key购买 nike

我正在尝试发出解析为特定 IP 的 cURL 请求。从我读过的所有内容来看,这在我看来在语法上是正确的,但我仍然看到“无法解决主机错误”。有人能指出我正确的方向吗?我看到了各种错误:

curl —-resolve e-dinar.io:443:42.81.15.75 "https://e-dinar.io"
IDN support not present, can't parse Unicode domains
* getaddrinfo(3) failed for —-resolve:80

curl —-resolve e-dinar.io:443:42.81.15.75 "https://e-dinar.io:443"
curl: (6) Couldn't resolve host '—-resolve'
curl: (6) Couldn't resolve host 'e-dinar.io:443'

curl "https://e-dinar.io:443" —-resolve e-dinar.io:443:42.81.15.75
curl: (6) Couldn't resolve host '—-resolve'
curl: (6) Couldn't resolve host 'e-dinar.io:443'

有没有想过我哪里出错了?谢谢。

最佳答案

你在curl命令中使用了错误的-(),将改为-- .您在此处的 curl 响应中有提示:

curl: (6) Couldn't resolve host '—-resolve'

curl 尝试从 ----resolve 主机获取数据,由于错误的 -,它没有将其解析为命令。

关于linux - cURL——解决问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38563967/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com