Set of commands to download and post to web
- Download content from any URL as a string
- Download content from any URL to file
- POST url encoded form to any URL
For example to download stuff from http://example.com execute
get-webcontent http://example.com
You can also use pipes
get-webcontent http://example.com | set-content example.html
Using pipes actully allows running scripts directly from web
get-webcontent https://gist.github.com/raw/909561/hello_world.ps1 | invoke-expression
Another option is to download to file
get-url http://example.com -ToFile "example.html"
If you have PsGet installed, you can execute:
install-module PsUrl
Or manual steps
1. Copy PsUrl.psm1 to your modules folder (e.g. $Env:PSModulePath\PsUrl\ )
2. Execute Import-Module PsUrl (or add this command to your profile)
3. Enjoy!
Licensed under the MIT