Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »


[-Method {Default | Get | Head | Post | Put | Delete | Trace | Options | Merge | Patch}]



difference between Linux and Powershell cURL
Linux                                             Powershell

-u admin:admin                        >>>>>>>>    -user admin:admin
-X POST                               >>>>>>>>    -Method POST
-H 'Content-Type: application/json'   >>>>>>>>    -ContentType 'application/json'
-d '{"type . . . .                    >>>>>>>>    -Body '{"type . . . 
https://thefreetelecomu . . .. . . .  >>>>>>>>    -v https://thefreetelecomuni.atlassian.net/wiki/rest/api/content/

curl on Powershell
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"



  • No labels