Hi, I am using wget 1.10.2 to fetch files on an https server that requires authentication. Unfortunately, wget reports a problem of void path (?) in a cookie.
Regards, Mgrd $ /usr/local/bin/wget -d --cookies=on --keep-session-cookies --save-cookies cookies.txt -O tmp_auth-2 --no-check-certificate https://www.foobar.fr --post-data "username=foo&password=bar<=LT-111876-n2LC90UIrTo1PZREf0gj" Setting --cookies (cookies) to on Setting --keep-session-cookies (keepsessioncookies) to 1 Setting --save-cookies (savecookies) to cookies.txt Setting --output-document (outputdocument) to tmp_auth-2 Setting --check-certificate (checkcertificate) to 0 Setting --post-data (postdata) to username=foo&password=bar<=LT-111876-n2LC90UIrTo1PZREf0gj DEBUG output created by Wget 1.10.2 on linux-gnu. --00:53:36-- https://www.foobar.fr/ => `tmp_auth-2' Résolution de www.foobar.fr... xx.xxx.xx.xx Caching www.foobar.fr => xx.xxx.xx.xx Connexion vers www.foobar.fr|xx.xxx.xx.xx|:443...connecté. Created socket 4. Releasing 0x080ac340 (new refcount 1). Initiating SSL handshake. Handshake successful; connected socket 4 to SSL handle 0x080ac4e0 certificate: subject: /C=FR/O=0751723R/CN=www.foobar.fr/[EMAIL PROTECTED] issuer: /C=FR/O=CRU/CN=ac-serveur/[EMAIL PROTECTED] AVERTISSEMENT: erreur de vérification du certificat pour www.foobar.fr: self signed certificate in certificate chain ---request begin--- POST / HTTP/1.0 User-Agent: Wget/1.10.2 Accept: */* Host: www.foobar.fr Connection: Keep-Alive Content-Type: application/x-www-form-urlencoded Content-Length: 67 ---request end--- [POST data: username=foo&password=bar<=LT-111876-n2LC90UIrTo1PZREf0gj] requête HTTP transmise, en attente de la réponse... ---response begin--- HTTP/1.1 200 OK Date: Wed, 06 Sep 2006 22:53:43 GMT Server: Apache/2.0.52 (Red Hat) Pragma: no-cache Cache-Control: no-store Expires: Wed, 31 Dec 1969 23:59:59 GMT Set-Cookie: CASTGC=TGC-137513-qg1rH8JsmazGKX8zqHzuiig6NyFbChESwgFGRLOXkex6JaZZLc; Path=; Secure Content-Length: 2004 Connection: close Content-Type: text/html;charset=ISO-8859-1 ---response end--- 200 OK Erreur dans Set-Cookie(), champ « Path »Erreur de syntaxe dans Set-Cookie: CASTGC=TGC-137513-qg1rH8JsmazGKX8zqHzuiig6NyFbChESwgFGRLOXkex6JaZZLc; Path=; Secure à la position 76 Longueur: 2,004 (2.0K) [text/html] 100%[===================================================================== =======>] 2,004 --.--K/s Closed 4/SSL 0x80ac4e0 00:53:37 (893.21 KB/s) - « tmp_auth-2 » sauvegardé [2004/2004] Saving cookies to cookies.txt. Done saving cookies.