Date: Fri, 25 Jul 1997 17:03:15 +0800 (TSD) From: "Anatoly A. Orehovsky" <tolik@www.tomsk.su> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/4165: Problem with http-auth or http-proxy-auth in fetch Message-ID: <199707250903.RAA16942@www.tomsk.su> Resent-Message-ID: <199707250910.CAA23735@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4165 >Category: bin >Synopsis: fetch gone to interminable query cycle after successful http-auth or http-proxy-auth >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 25 02:10:00 PDT 1997 >Last-Modified: >Originator: Anatoly A. Orehovsky >Organization: CISA Ltd. >Release: FreeBSD 2.2.2-RELEASE i386 >Environment: Any http-auth or http-proxy-auth required query to web-server. >Description: After successful authentication fetch gone to interminable query cycle, although web-server sended answer "200 Ok". Wrong place for "autherror = 0" in fetch/http.c. >How-To-Repeat: HTTP_AUTH="basic:realm:user:password" fetch http://http-auth-required-resource or HTTP_PROXY_AUTH="basic:realm:user:password" fetch http://http-proxy-auth-required-resource If realm&user&password is right, fetch go to interminable query cycle staight. >Fix: Patch: *** http.c.orig Mon Mar 10 14:12:51 1997 --- http.c Fri Jul 25 16:43:18 1997 *************** *** 433,439 **** restarting = fs->fs_restart; redirection = 0; retrying = 0; - autherror = 0; /* * Figure out the timeout. Prefer the -T command-line value, --- 433,438 ---- *************** *** 657,662 **** --- 656,662 ---- status = http_first_line(line); /* In the future, we might handle redirection and other responses. */ + autherror = 0; switch(status) { case 100: /* Continue */ goto got100reply; -- Anatoly A. Orehovsky. AO9-RIPE. AAO1-RIPN >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707250903.RAA16942>