Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cdhunt/parse-curl
Parse a Curl command to get a paramerter hashtable for Invoke-RestMethod
https://github.com/cdhunt/parse-curl
curl powershell wrapper
Last synced: about 2 months ago
JSON representation
Parse a Curl command to get a paramerter hashtable for Invoke-RestMethod
- Host: GitHub
- URL: https://github.com/cdhunt/parse-curl
- Owner: cdhunt
- License: mit
- Created: 2015-10-28T15:33:59.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-20T18:59:53.000Z (about 9 years ago)
- Last Synced: 2023-03-23T02:56:22.892Z (almost 2 years ago)
- Topics: curl, powershell, wrapper
- Language: PowerShell
- Size: 15.6 KB
- Stars: 19
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Parse-Curl
Parse a Curl command to get a parameter hashtable for Invoke-RestMethod[![Build status](https://ci.appveyor.com/api/projects/status/231l3j4r8mcxcyeo?svg=true)](https://ci.appveyor.com/project/cdhunt/parse-curl)
## Example
```powershell
PS > $params = 'curl --data 1 --header "header:value" --user-agent "Mozilla/4.0" http://somedomain/folder' | Parse-Curl
PS C:\Script> $paramsName Value
---- -----
UserAgent Mozilla/4.0
Method Post
Body 1
Headers {header}
Uri http://somedomain/folderPS > Invoke-RestMethod @params
```