rim*_*ire 5 curl web-applications http
我有一个托管在 ABCD:5601 的网络应用程序,当我尝试时curl A.B.C.D:5601它不会在屏幕上打印任何内容,但是当我使用浏览器打开相同的链接时,它会打开该网络应用程序。但它被转发到A.B.C.D:5601/foo/bar并且打开得很好。
这是输出curl -v
* Trying A.B.C.D:5601...
* TCP_NODELAY set
* Connected to A.B.C.D port 5601 (#0)
> GET / HTTP/1.1
> Host: A.B.C.D:5601
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 302 Found
< location: /spaces/enter
< x-content-type-options: nosniff
< referrer-policy: no-referrer-when-downgrade
< cache-control: private, no-cache, no-store, must-revalidate
< content-length: 0
< Date: Tue, 08 Jun 2021 03:01:11 GMT
< Connection: keep-alive
< Keep-Alive: timeout=120
<
* Connection #0 to host A.B.C.D left intact
Run Code Online (Sandbox Code Playgroud)
为什么curl 没有给我回复?
Eve*_*ert 13
Curl 告诉您您将被重定向到/spaces/enter.
您可以告诉 Curl 自动遵循重定向:
curl -vL [url]
Run Code Online (Sandbox Code Playgroud)