BAT: Using wget to fetch html-file from Confluence

1 post / 0 new
benzzon
benzzon's picture
BAT: Using wget to fetch html-file from Confluence

BAT file "wget_confluence_start.bat":

@echo off
echo.


ask -h -p:"Enter password for user_name_here.." -v:pwd -e:"wget_confluence_exec.bat"
echo.


BAT file "wget_confluence_exec.bat":

@echo off
REM echo %pwd%


wget --no-check-certificate -E -H -k -p --keep-session-cookies --save-cookies cookies.txt --post-data "os_username=user_name_here&os_password=%pwd%" https://confluence.x.com/display/~nilben/Aktivitetslista X:\Bck\