If you want to download links with wget from Oracle site which are session authentication based, you must do it in two steps.
1. authenticate yourself to get the cookie
# Log in to the server. This can be done only once.
wget --save-cookies cookies.txt \
--post-data 'username=xxxx&password=xxxx' \
https://profile.oracle.com/jsp/reg/loginHandler.jsp
2. retrieve the file as normal
# Now grab the page or pages we care about.
wget --load-cookies cookies.txt \
-p http://download-llnw.oracle.com/otn/java/jdeveloper/11.1.1.3.0/jdevstudio11113install.bin
That's all.
sábado, 17 de julio de 2010
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario