Hello, I have a website i have to connect to each day and download multiple zip file. The file is a HTTPS site and I log in with a username and password. I then get to the page with multiple file and i have to right click each file and save as to save them. I would love to use WGET to automate this process. The i use this command:
wget --server-response --http-user=username --http-password=password --no-check- certificate "https://www.site.com/filename.zip" I get this message from Wget: SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = c:/progra~1/wget/etc/wgetrc --2012-08-31 12:33:27-- https://www.site.com/file.zip Resolving www.site.com... xx.xx.xx.xx Connecting to www.site.com... xx.xx.xx.xx|:443... connected. WARNING: cannot verify www.wvmmis.com's certificate, issued by `/C=US/O=VeriSign , Inc./OU=VeriSign Trust Network/OU=Terms of use at https://www.verisign.com/rpa (c)10/CN=VeriSign Class 3 International Server CA - G3': Self-signed certificate encountered. HTTP request sent, awaiting response... HTTP/1.1 200 OK Server: Apache-Coyote/1.1 X-Powered-By: Servlet/3.0; JBossAS-6 Set-Cookie: JSESSIONID=8564B6889BDDC8E83F0CF6A476CA2B6C; Path=/xjDownload; Sec ure Pragma: No-cache Expires: Thu, 01 Jan 1970 00:00:00 GMT Cache-Control: no-cache Content-Type: text/html;charset=ISO-8859-1 Content-Length: 7522 Date: Fri, 31 Aug 2012 16:33:28 GMT Connection: keep-alive Length: 7522 (7.3K) [text/html] Saving to: `file.zip' 100%[=====================================> ] 7,522 --.-K/s in 0s 2012-08-31 12:33:28 (523 MB/s) - `file.zip' saved [7522/7522] When I look at the file is downloaded it is just the HTML code of the page the zip file was one and not the zip file itself. I have tried connecting to the site in IE and Fire Fox and exporting the certificate to ta file and using the --CA-Certificate=file.cer is can not get past the security of the site. Does anyone know of a way to connect to the HTTPS site and download the files with WGET. thanks matt
