????????web???????????????
?????????????
????1. ???url?????http://www.xxx.com/a/bbb.html??
????2. ???url??????????????“????????=?????&??????=?????”??
????3. ????????????????????ж???????????
????4. ?????????????????????ж????????????????????url?????json??????
???????磺????????????userName?????userName?????????????????????????????????userName???????????????????????????????????????????????????????????????????????????????ж???????????????????????????????????????????????????????????????
??????????y???????????????????????PowerShellд??????????????????????PowerShell 3.0????Invoke-WebRequest?????????????????web??????????Win7??????PowerShell??2.0.?????????PowerShell??????$psversiontable?????PowerShell??汾????PowerShell??????3.0??????????????鵽????譴??????????????????????????????????????????????????????Services??Windows Update????????????????????????????????PowerShell??????3.0????????????????????Invoke-WebRequest????????дweb????????????
????????????
???????????£???????????iUriTest.ps1????
chcp 936
Write-Host "???????????????" -ForegroundColor Yellow
$iUri = Read-Host "???uri"
$i1Name = Read-Host "????????1"
$i2Name = Read-Host "????????2"
while($true){
$tip1 = "?????????"+$i1Name+"???:"
Write-Host $tip1 -ForegroundColor Cyan
$i1Value = Read-Host
$tip2 = "????????? "+$i2Name+"???:"
Write-Host $tip2 -ForegroundColor Cyan
$i2Value = Read-Host
$uri = $iUri+"?"+$i1Name+"="+$i1Value+"&"+$i2Name+"="+$i2Value
$back = Invoke-WebRequest -Uri $uri
$back.Content
}
??????iUriTest.ps1??????????PowerShell???У????£?