我在做一个领域前沿项目。基本上,我试图使用subprocess.call()函数来解释以下命令:wget -O - https://fronteddomain.example --header 'Host: targetdomain.example'
有了适当的域名,我知道如何领域前沿,这不是问题。只是在用wget编写python函数时需要一些帮助。
发布于 2018-11-20 21:52:08
我用卷发找到了答案:
call(["curl", "-s", "-H" "Host: targetdomain.example", "-H", "Connection: close", "frontdomain.example"])
https://stackoverflow.com/questions/53400968
复制相似问题