????PowerShell 3.0??web??????
???????????? ???????[ 2016/4/1 11:24:23 ] ??????????????? ??????
????????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???У????£?
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11