Windows 10 中的 Http 请求或 cURL

Http Request or cURL in Windows 10

如何在不安装任何插件的情况下默认在Windows 10中请求HTTP?

curl -X POST http://you-url.com/api/search

我们可以使用 PowerShell

$Uri = 'http://you-url.com/api/search'
$Fields = @{
    properties='{"color": "red"}'
    maxitems='30'
    skipcount='0'
    location='country'
    userName='testing'
    password='testing'
}
Invoke-RestMethod -Uri $Uri -Method Post -Body $Fields | ConvertTo-Json -Depth 10;