繁体   English   中英

wget与subprocess.call()

[英]wget with subprocess.call()

我正在做一个领域前沿项目。 基本上,我试图使用wget -O - https://fronteddomain.example --header 'Host: targetdomain.example' subprocess.call()函数来解释以下命令: wget -O - https://fronteddomain.example --header 'Host: targetdomain.example'

使用正确的域,我知道如何进行域前端,这不是问题。 只需一些使用wget的python subprocess.call()函数进行编写的帮助。

我用curl弄清楚了:

call(["curl", "-s", "-H" "Host: targetdomain.example", "-H", "Connection: close", "frontdomain.example"])

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM