Skip to content

Latest commit

 

History

History
43 lines (24 loc) · 1005 Bytes

Readme.md

File metadata and controls

43 lines (24 loc) · 1005 Bytes

PsUrl Utils

Set of commands to download and post to web

Features

  1. Download content from any URL as a string
  2. Download content from any URL to file
  3. POST url encoded form to any URL

Examples

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"

Installation

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!

License

Licensed under the MIT