簡體   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