【发布时间】:2016-12-20 11:04:58
【问题描述】:
当我尝试向 Spectra 磁带库发送多个请求时,我有以下代码 -
**
$results = Invoke-WebRequest -Uri "http://spectra1/gf/login.xml?username=administrator&password=xxxxxxx&forceFrontPanel
$results = Invoke-WebRequest -Uri "http://spectra1/gf/driveList.xml?action=list" -OutFile c:\temp\drivelist.txt
**
第一个结果很好,它会登录,但我一发送第二个命令,它就会说:-
<?xml version="1.0"?>
<error>
<message>You must go to login.xml and login before operating the library</message>
<description>---- Error: No active session found.
Visit login.xml to specify your username and password
</description>
</error>
有什么帮助吗?
【问题讨论】:
标签: powershell