Date: Wed, 5 Feb 1997 21:43:43 +0100 (MET) From: burg@is.ge.com To: FreeBSD-gnats-submit@freebsd.org Subject: bin/2670: fetch and proxies Message-ID: <199702052043.VAA01307@vdb.is.ge.com> Resent-Message-ID: <199702052050.MAA10921@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 2670 >Category: bin >Synopsis: fetch fails with HTTP_PROXY >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 5 12:50:07 PST 1997 >Last-Modified: >Originator: Dick van den Burg >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: Current as of Feb 3 HTTP_PROXY=http-proxy.euro.ge.com:80 netscape proxy on a BSDI system. >Description: 1) fetch decodes the proxy port number incorrectly resulting in fetch: `http-proxy.euro.ge.com:80': invalid port number 2) the GET has a leading / that should not be there. GET /http://www.xemacs.org/index.html in stead of GET http://www.xemacs.org/index.html >How-To-Repeat: >Fix: *** http.c Wed Feb 5 21:34:32 1997 --- /usr/src/usr.bin/fetch/http.c Fri Jan 31 20:55:50 1997 *************** *** 415,421 **** } while(0) retry: ! addstr(iov, n, "GET "); addstr(iov, n, https->http_remote_request); addstr(iov, n, " HTTP/1.1\r\n"); /* --- 415,421 ---- } while(0) retry: ! addstr(iov, n, "GET /"); addstr(iov, n, https->http_remote_request); addstr(iov, n, " HTTP/1.1\r\n"); /* *** util.c Wed Feb 5 20:11:43 1997 --- /usr/src/usr.bin/fetch/util.c Sun Feb 2 10:16:37 1997 *************** *** 165,171 **** colon = strchr(s, ':'); if (colon != 0) { ! /* colon++; */ errno = 0; ul = strtoul(colon + 1, &ep, 10); if (*ep != '\0' || colon[1] == '\0' || errno != 0 --- 165,171 ---- colon = strchr(s, ':'); if (colon != 0) { ! colon++; errno = 0; ul = strtoul(colon + 1, &ep, 10); if (*ep != '\0' || colon[1] == '\0' || errno != 0 >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702052043.VAA01307>