Hi Wget I try with wget for windows and get this problem: 1. Windows xp Professional Service Pack 2
2. Try with this and work fine from a command window (cmd.exe) use with copy/paste to cmd window. set http_proxy= c:\wintools\wget.exe -d -o "c:\temp\log.txt" --post-data="id=Administrator&passwd=Administrator&SUBMIT_BUTTON=Sign In" " http://192.168.1.4:9704/xmlpserver/" FOR /F "tokens=2 delims= " %A IN ('FIND /I "Cookie: JSESSIONID=" "c:\temp\log.txt"') DO set COOKIE_STRING=%A SET COOKIE_STRING=%COOKIE_STRING:;=% c:\wintools\wget.exe -d --output-document="c:\temp\xemi.html" --no-cookies --header "Cookie: %COOKIE_STRING%" " http://192.168.1.4:9704/xmlpserver/servlet/xdo?_xdo=%2F%7Eadministrator%2FEjercicio+10%2FEjercicio+10.xdo<http://1.33.33.172:9704/xmlpserver/servlet/xdo?_xdo=%2F%7Eadministrator%2FEjercicio+10%2FEjercicio+10.xdo> &" 3. When I use a test.cmd file with this /**********************************/ @echo off setlocal set TEMP_DIRECTORY=c:\temp set OUTPUT_FILE=psgesca.html c:\wintools\wget.exe -d -o "%TEMP_DIRECTORY%\log.txt" --post-data="id=Administrator&passwd=Administrator&SUBMIT_BUTTON=Sign In" " http://192.168.1.4:9704/xmlpserver/ <http://1.33.33.172:9704/xmlpserver/>" FOR /F "tokens=2 delims= " %%A IN ('FIND /I "Cookie: JSESSIONID=" "%TEMP_DIRECTORY%\log.txt"') DO set COOKIE_STRING=%%A :: - sustituimos ';' por '' SET COOKIE_STRING=%COOKIE_STRING:;=% c:\wintools\wget.exe -d --output-document="%TEMP_DIRECTORY%\%OUTPUT_FILE%" --no-cookies --header "Cookie: %COOKIE_STRING%" " http://192.168.1.4:9704/xmlpserver/servlet/xdo?_xdo=%2F%7Eadministrator%2FEjercicio+10%2FEjercicio+10.xdo<http://1.33.33.172:9704/xmlpserver/servlet/xdo?_xdo=%2F%7Eadministrator%2FEjercicio+10%2FEjercicio+10.xdo> &" GOTO:EOF /**********************************/ Launch from a command window and generate psgesca.html file with this, seems that is different execution from a command window or from a script, any ideas ? psgesca.html: <html dir="ltr"><head><meta name="generator" content="Oracle UIX"><link rel="stylesheet" charset="UTF-8" type="text/css" href="/xmlpserver/cabo/styles/cache/swan-desktop-2_3_3-en.css"><script>var _UixWindowOpenError='A popup window blocker has been detected in your browser. Popup blockers interfere with the operation of this application. Please disable your popup blocker or allow popups from this site.'</script><script src="/xmlpserver/cabo/jsLibs/Common2_3_3.js"></script><script>_defaultTZ()</script><link href="/xmlpserver/xdo/styles/xdo.css" type="text/css" rel="stylesheet"><script language="javascript" src="/xmlpserver/xdo/jslib/xdo.js"></script></head><body class="xg" onload="_checkLoad(event)" onunload="_checkUnload(event)"><table class="x19" cellpadding="0" cellspacing="0" border="0" width="100%" summary=""><tr><td width="8" height="6"><img src="/xmlpserver/cabo/images/swan/msgBoxTop-L.gif" width="8" height="6" border="0" alt=""></td><td width="100%" background="/xmlpserver/cabo/images/swan/msgBoxTop-Bg.gif"></td><td width="8" height="6"><img src="/xmlpserver/cabo/images/swan/msgBoxTop-R.gif" width="8" height="6" border="0" alt=""></td></tr><tr><td background="/xmlpserver/cabo/images/swan/msgBoxMain-L.gif"></td><td class="x74"><div><div class="x60"><table cellpadding="0" cellspacing="0" border="0" width="100%" summary=""><tr valign="bottom"><td><img src="/xmlpserver/cabo/images/swan/errorl.gif" width="18" height="18" border="0" alt=""></td><td><img src="/xmlpserver/cabo/images/swan/t.gif" alt="" width="5" height="0"></td><td width="100%"><table cellpadding="0" cellspacing="0" border="0" width="100%" summary=""><tr><td width="100%"><h1 class="x5o">Error</h1></td></tr></table></td></tr></table></div><div class="x70"></div></div><div class="x40">The report cannot be rendered because of an error, please contact the administrator.</div><div class="x3z"><a onclick="javascript:document.getElementById('errordetail').style.display='block';return false;" href="#" class="xd">Error Detail</a></div></td><td background="/xmlpserver/cabo/images/swan/msgBoxMain-R.gif"></td></tr><tr><td width="8" height="6"><img src="/xmlpserver/cabo/images/swan/msgBoxBtm-L.gif" width="8" height="6" border="0" alt=""></td><td width="100%" background="/xmlpserver/cabo/images/swan/msgBoxBtm-Bg.gif"></td><td width="8" height="6"><img src="/xmlpserver/cabo/images/swan/msgBoxBtm-R.gif" width="8" height="6" border="0" alt=""></td></tr></table><span style="padding-left:2px;padding-top:2px"><button class="x7d" style="background-image:url(/xmlpserver/cabo/images/swan/btn-bg1.gif)" onclick="history.back()" type="button">Back</button></span><table width="90%" cellPadding="5" cellSpacing="0" border="0" id="errordetailtable"><tr valign="top"><td><div style="display:none" id="errordetail"><span class="x2t"><pre><span style="font-size:9pt">Report definition not found:FEadministratorFEjercicio 10FEjercicio 10.xdo</span></pre></span></div></td></tr></table><script language="javascript">if (window.parent) {var loadingDIV = window.parent.document.getElementById('xdoLoading');if (loadingDIV) {loadingDIV.style.display='none';}}</script></body><!-- Created by Oracle UIX 2.3.3 , laf:swan.desktop (swan) --></html> Sorry my poor english, I wait for your news ... Regards PGutierrez
