Skip to content

Importing PowerShell commands

The Windows equivalent of the cURL import: Restorm recognises the Invoke-RestMethod and Invoke-WebRequest commands.

File ▸ Import (Ctrl+I) then paste the script.

ParameterWhat Restorm makes of it
-UriThe URL
-MethodThe method
-Headers @{ ... }The headers (the hash table is parsed)
-BodyThe body
-ContentTypeThe content type

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.