From owner-freebsd-current Wed Aug 2 21:30:15 2000 Delivered-To: freebsd-current@freebsd.org Received: from alcanet.com.au (mail.alcanet.com.au [203.62.196.10]) by hub.freebsd.org (Postfix) with SMTP id D8BFB37B606; Wed, 2 Aug 2000 21:29:50 -0700 (PDT) (envelope-from jeremyp@gsmx07.alcatel.com.au) Received: by border.alcanet.com.au id <115260>; Thu, 3 Aug 2000 14:29:42 +1000 Content-return: prohibited Date: Thu, 03 Aug 2000 14:28:44 +1000 From: Peter Jeremy Subject: Loss of fetch(1) functionality with libfetch To: des@FreeBSD.ORG Cc: current@FreeBSD.ORG Mail-followup-to: des@freebsd.org, current@freebsd.org Message-Id: <00Aug3.142942est.115260@border.alcanet.com.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I don't recall seeing this mentioned: In order to access the Internet, I need to use proxy authorization. With the old fetch(1) I could use an environment variable like "HTTP_PROXY_AUTH=basic:*:" and it would prompt for a password. The new libfetch-based fetch(1) ignores the HTTP_PROXY_AUTH variable unless it is in the form "HTTP_PROXY_AUTH=basic:*::" and doesn't appear to have any provision for requesting a password. (HTTP_AUTH appears to suffer from the same problem). Whilst the environment is somewhat safer than the command line, I'd still prefer not to have passwords embedded in environment variables. Has this feature been deliberately left out, or is it just one of the bits that you haven't gotten around to implementing yet? Would you be interested in patches to implement it? On a related note, I noticed the following bug - though it has no effect on the operation of libfetch in its current form. Index: http.c =================================================================== RCS file: /home/CVSROOT/src/lib/libfetch/http.c,v retrieving revision 1.34 diff -u -r1.34 http.c --- http.c 2000/07/25 11:45:38 1.34 +++ http.c 2000/08/03 04:25:53 @@ -91,7 +91,7 @@ #define HTTP_MOVED_TEMP 302 #define HTTP_SEE_OTHER 303 #define HTTP_NEED_AUTH 401 -#define HTTP_NEED_PROXY_AUTH 403 +#define HTTP_NEED_PROXY_AUTH 407 #define HTTP_PROTOCOL_ERROR 999 #define HTTP_REDIRECT(xyz) ((xyz) == HTTP_MOVED_PERM \ Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message