Invoke-WebRequest

{bbon}
이동: 둘러보기, 검색

Syntax

Invoke-WebRequest [-Uri] <uri> [-UseBasicParsing] [-WebSession <WebRequestSession>] [-SessionVariable <string>] [-Credential <pscredential>] [-UseDefaultCredentials] [-CertificateThumbprint <string>] [-Certificate <X509Certificate>] [-UserAgent <string>] [-DisableKeepAlive] [-TimeoutSec <int>] [-Headers <IDictionary>] [-MaximumRedirection <int>] [-Method <WebRequestMethod> {Default | Get | Head | Post | Put | Delete | Trace | Options | Merge | Patch}] [-Proxy <uri>] [-ProxyCredential <pscredential>] [-ProxyUseDefaultCredentials] [-Body <Object>] [-ContentType <string>] [-TransferEncoding <string> {chunked | compress | deflate | gzip | identity}] [-InFile <string>] [-OutFile <string>] [-PassThru]  [<CommonParameters>]


Aliases

  • iwr
  • wget
  • curl


Remark

Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only partial help.

  • To download and install Help files for the module that includes this cmdlet, use Update-Help.
  • To view the Help topic for this cmdlet online, type: "Get-Help Invoke-WebRequest -Online" or go to http://go.microsoft.com/fwlink/?LinkID=217035.

Example

PS C:\> curl http://localhost/images/sample.png -outfile d:\sample.png

http://localhost/images/sample.png 파일을 로컬 디렉터리에 파일(d:\sample.png)로 저장한다.