I'm trying to download a file which is behind a website with authentication. The service gave an example script which uses wget to download the file.
Now I'm trying to mimic that functionality in Java
set WGET_PARAM= --no-check-certificate --secure-protocol=TLSv1
set DOWNLOAD_PARAM=-nd -N -r --level=2 --include-directories=blob --accept=csv,txt,zip %PAGE%
REM * wget --save-cookies cookies.txt %WGET_PARAM% --keep-session-cookies --post-data %ACCOUNT% -O NUL https://www.example.com!login
wget --load-cookies cookies.txt %WGET_PARAM% %DOWNLOAD_PARAM%
REM * wget --load-cookies cookies.txt %WGET_PARAM% --post-data="x=1" -O https://www.example.com!logout
Any idea how I get around the --no-check-certificate --secure-protocol=TLSv1 ?
Thanks for any help.