Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f2c36f2f34
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (26 sloc) 0.985 kb

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

Example

For example to download stuff from http://example.com execute

get-url http://example.com

You can also use pipes

get-url http://example.com | set-content example.html

Using pipes actully allows running scripts directly from web

get-url 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!
Jump to Line
Something went wrong with that request. Please try again.