天天看點

在PowerShell中使用curl(Invoke-WebRequest)

習慣了windows的界面模式就很難轉去指令行,甚至以指令行發家的git也湧現出各種界面tool。然而指令行真的會比界面快的多,如果你是一個碼農。

Gets content from a web page on the Internet.

擷取http web請求通路内容

會發現content内容被截斷了。想要擷取完整的content:

For example:

or

雖然沒有curl那麼主流,但一樣可以成為http通路的一個選擇。

<a href="https://technet.microsoft.com/en-us/library/hh849901.aspx">https://technet.microsoft.com/en-us/library/hh849901.aspx</a>

唯有不斷學習方能改變!

-- <b>Ryan Miao</b>

繼續閱讀