【问题标题】:Given a URL, is there a way to determinate which file were downloaded from there?给定一个 URL,有没有办法确定从那里下载了哪个文件?
【发布时间】:2021-12-08 23:58:33
【问题描述】:

我希望尽可能清楚: 使用 ADS,我可以检索文件 Zone.Identifier: 从cmd,在Dir /R 之后,我可以启动notepad file.extension:Zone.Identifier,我可以阅读ReferrerUrl/HostUrl。但是,给定一个 URL,如果在 C# 中,有一种方法可以更好地检索从该 URL 下载的文件系统中的文件名?

谢谢

【问题讨论】:

    标签: c# ads


    【解决方案1】:

    如果响应包含 Content-Disposition 标头,它将如下所示:

    Content-Disposition​: attachment; filename=opensearch.osdx​
    

    在导航到 url 时,将下载名为 opensearch.osdx 的文件

    【讨论】:

    • 您好,感谢您的回复,但我想要一些东西:例如我有一个 IP 地址。我想知道我的文件系统中的哪个文件是从该 IP 下载的
    猜你喜欢
    • 1970-01-01
    • 2012-12-04
    • 2020-08-06
    • 2023-02-23
    • 1970-01-01
    • 2020-12-22
    • 2012-11-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多