匯入 PowerShell 命令
這是 cURL 匯入在 Windows 上的對應做法:
Restorm 能辨識 Invoke-RestMethod 與 Invoke-WebRequest 命令。
檔案 ▸ 匯入(Ctrl+I),然後貼上該腳本。
可辨識的內容
Section titled “可辨識的內容”| 參數 | Restorm 的處理方式 |
|---|---|
-Uri | URL |
-Method | 方法 |
-Headers @{ ... } | 標頭(該雜湊表會被解析) |
-Body | 內文 |
-ContentType | 內容類型 |
PowerShell 也是 HTTP 與 SOAP 請求
程式碼匯出的目標之一。
主控台同樣可以把所擷取的全部流量以
Invoke-RestMethod 格式顯示,而非 curl 格式:這是 主控台 ▸ 請求格式這個
設定。