Importing PowerShell commands
The Windows equivalent of the cURL import: Restorm
recognises the Invoke-RestMethod and Invoke-WebRequest commands.
Importing
Section titled “Importing”File ▸ Import (Ctrl+I) then paste the script.
What is recognised
Section titled “What is recognised”| Parameter | What Restorm makes of it |
|---|---|
-Uri | The URL |
-Method | The method |
-Headers @{ ... } | The headers (the hash table is parsed) |
-Body | The body |
-ContentType | The content type |
The other way round
Section titled “The other way round”PowerShell is one of the
code export targets for HTTP and SOAP
requests. The console can also show all the captured
traffic in Invoke-RestMethod form rather than as curl: that is the Console ▸
Request format setting.