bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] w2k wget from cmd


From: Peter King
Subject: [Bug-wget] w2k wget from cmd
Date: Thu, 18 Jun 2009 09:45:48 +0200

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="" 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&"
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="" In" "http://192.168.1.4: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&"
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="" _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="" href="" type="text/css" rel="stylesheet"><script language="_javascript_" src="" class="xg" class="x19" cellpadding="0" cellspacing="0" border="0" width="100%" summary=""><tr><td width="8" height="6"><img src="" width="8" height="6" border="0" alt=""></td><td width="100%" background="" width="8" height="6"><img src="" width="8" height="6" border="0" alt=""></td></tr><tr><td background="" class="x74"><div><div class="x60"><table cellpadding="0" cellspacing="0" border="0" width="100%" summary=""><tr valign="bottom"><td><img src="" width="18" height="18" border="0" alt=""></td><td><img src="" 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 false;" href="" class="xd">Error Detail</a></div></td><td background="" width="8" height="6"><img src="" width="8" height="6" border="0" alt=""></td><td width="100%" background="" width="8" height="6"><img src="" 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)" 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]