简体   繁体   English

wget与subprocess.call()

[英]wget with subprocess.call()

I'm working on a domain fronting project. 我正在做一个领域前沿项目。 Basically I'm trying to use the subprocess.call() function to interpret the following command: wget -O - https://fronteddomain.example --header 'Host: targetdomain.example' 基本上,我试图使用wget -O - https://fronteddomain.example --header 'Host: targetdomain.example' subprocess.call()函数来解释以下命令: wget -O - https://fronteddomain.example --header 'Host: targetdomain.example'

With the proper domains, I know how to domain front, that is not the problem. 使用正确的域,我知道如何进行域前端,这不是问题。 Just need some help with writing using the python subprocess.call() function with wget. 只需一些使用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