最简单的方法来对URI进行POST操作

tug*_*erk 2 windows powershell command-line http http-post

我在Windows上,对URI进行POST操作的最简单,最快捷的方法是什么?我可以使用命令行或PowerShell实现此目的吗?

And*_*der 5

Powershell示例:

 $c=New-Object System.Collections.Specialized.NameValueCollection
 $c.Add('param1','value1')
 $c.Add('param2','value2')
 $wc = New-Object system.net.webclient
 $d = $wc.uploadvalues("http://your.url",$c)
Run Code Online (Sandbox Code Playgroud)