gpt4 book ai didi

Linux/wget with # 给出带有部分地址的页面

转载 作者:太空宇宙 更新时间:2023-11-04 12:50:34 27 4
gpt4 key购买 nike

我运行以下网址:

wget 'https://myurl:8080/address/index.html#part1;part2;part3;base/a/b;content'

它给了我以下信息:

HTTP request sent, awaiting response... 200 OK
Length: 4614 (4.5K) [text/html]
Saving to: “index.html”

它在“#”之前剪切,只下载 index.html。但我希望获得具有完整地址的页面,该页面具有不同的内容。

最佳答案

这是正常的,因为是同一个页面。来自 Wget with URL that contains # :

wget is working fine. The URI syntax specifies that thefragment – the #foo part – is to be interpreted entirely client-side, and not used when retrieving the documentitself.

也就是说,这两个 URL 对于 wget 是相同的:

https://myurl:8080/address/index.html#part1;part2;part3;base/a/b;content
https://myurl:8080/address/index.html

关于Linux/wget with # 给出带有部分地址的页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37321686/

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