利用curl 提取RTC WI的信息

%1 is the work item number

%2 the RTC server address


For example 'rtcquery.bat 12345 jazz04.rchland.ibm.com:9443'

代码示例:

set HOST=https://%2/jazz
set USER=<intranet ID>
set PWD=<intranet PW>
set COOKIES=cookies.txt

"c:\program files\curl\curl.exe" -s -k -L -c %COOKIES% %HOST%/authenticated/identity > nul
"c:\program files\curl\curl.exe" -s -k -L -b %COOKIES% -c %COOKIES% -d j_username=%USER% -d j_password=%PWD% %HOST%/j_security_check > nul

"c:\program files\curl\curl.exe" -s -k -b %COOKIES% %HOST%/oslc/workitems/%1.hover.html?_selector=hover 1> <path to webserver directory>\%1 2>&1
exit

提取好的文件直接用浏览器打来就行了

你可能感兴趣的:(利用curl 提取RTC WI的信息)