The correct way to call curl in powershell

Node.js learning advanced programming book, need to use curl

After downloading curl and added to the environment variable when you call curl in ps (powershell) and input parameters, not always prompt

Use get-help query results are as follows:

C PS: \ the Users \ sx00x> Get- Help curl 

the name of 
    the Invoke - WebRequest 

syntax of 
    the Invoke -WebRequest [-uri] <uri> [<CommonParameters> ] 


alias 
    IWR 
    wget 
    curl

Original, curl into ps Native Command Invoke-WebRequest alias.

Want to call curl, should be entered in the ps: curl.exe and parameters, problem solving

PS C:\Users\sx00x> curl.exe -X POST --data-urlencode a=b --data-urlencode c=d http://localhost:8080

 

Guess you like

Origin www.cnblogs.com/sx00xs/p/11478936.html