...
[-Method {Default | Get | Head | Post |
Put | Delete | Trace | Options | Merge | Patch}]
|
|
---|
|
Code Block |
---|
title | difference between Linux and Powershell cURL |
---|
| Linux Powershell
-u admin:admin >>>>>>>> -user admin:admin
-X POST >>>>>>>> -Method POST
-D, --dump-header <filename> Write the received headers to <filename> >>>>>>>>>> -InFile <String
-H 'Content-Type: application/json' >>>>>>>> -ContentType 'application/json'
-d '{"type . . . . >>>>>>>> -Body '{"type . . .
https://thefreetelecomu . . .. . . . >>>>>>>> -v https://thefreetelecomuni.atlassian.net/wiki/rest/api/content/
|
Code Block |
---|
title | curl on Powershell |
---|
collapse | true |
---|
| PS C:\Users\jkriker> curl -?
NAME
Invoke-WebRequest
SYNOPSIS
Gets content from a web page on the Internet.
SYNTAX
Invoke-WebRequest [-Uri] <Uri> [-Body <Object>] [-Certificate <X509Certificate>] [-CertificateThumbprint
<String>] [-ContentType <String>] [-Credential <PSCredential>] [-DisableKeepAlive] [-Headers
<IDictionary>] [-InFile <String>] [-MaximumRedirection <Int32>] [-Method {Default | Get | Head | Post |
Put | Delete | Trace | Options | Merge | Patch}] [-OutFile <String>] [-PassThru] [-Proxy <Uri>]
[-ProxyCredential <PSCredential>] [-ProxyUseDefaultCredentials] [-SessionVariable <String>] [-TimeoutSec
<Int32>] [-TransferEncoding {chunked | compress | deflate | gzip | identity}] [-UseBasicParsing]
[-UseDefaultCredentials] [-UserAgent <String>] [-WebSession <WebRequestSession>] [<CommonParameters>]
DESCRIPTION
The Invoke-WebRequest cmdlet sends HTTP, HTTPS, FTP, and FILE requests to a web page or web service. It
parses the response and returns collections of forms, links, images, and other significant HTML elements.
This cmdlet was introduced in Windows PowerShell 3.0.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/?LinkId=821826
Invoke-RestMethod
ConvertFrom-Json
ConvertTo-Json
REMARKS
To see the examples, type: "get-help Invoke-WebRequest -examples".
For more information, type: "get-help Invoke-WebRequest -detailed".
For technical information, type: "get-help Invoke-WebRequest -full".
For online help, type: "get-help Invoke-WebRequest -online" |
|
|
|
...