wget 与 subprocess.call()
wget with subprocess.call()
我正在做一个域前端项目。基本上我正在尝试使用 subprocess.call()
函数来解释以下命令:
wget -O - https://fronteddomain.example --header 'Host: targetdomain.example'
有了正确的域,我知道如何在域前端,这不是问题。只需要一些帮助来编写使用 python subprocess.call()
函数和 wget.
我用 curl 弄明白了:
call(["curl", "-s", "-H" "Host: targetdomain.example", "-H", "Connection: close", "frontdomain.example"])
我正在做一个域前端项目。基本上我正在尝试使用 subprocess.call()
函数来解释以下命令:
wget -O - https://fronteddomain.example --header 'Host: targetdomain.example'
有了正确的域,我知道如何在域前端,这不是问题。只需要一些帮助来编写使用 python subprocess.call()
函数和 wget.
我用 curl 弄明白了:
call(["curl", "-s", "-H" "Host: targetdomain.example", "-H", "Connection: close", "frontdomain.example"])