From fenner@parc.xerox.com Sat Jan 18 17:28:48 1997 Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id RAA11080 for ; Sat, 18 Jan 1997 17:28:47 -0800 (PST) Received: from fenestro.parc.xerox.com ([13.0.208.199]) by alpha.xerox.com with SMTP id <14561(3)>; Sat, 18 Jan 1997 17:28:15 PST Received: (from fenner@localhost) by fenestro.parc.xerox.com (8.8.4/8.8.4) id RAA18872; Sat, 18 Jan 1997 17:28:01 -0800 (PST) Message-Id: <199701190128.RAA18872@fenestro.parc.xerox.com> Date: Sat, 18 Jan 1997 17:28:01 PST From: Bill Fenner Reply-To: fenner@parc.xerox.com To: FreeBSD-gnats-submit@freebsd.org Subject: fetch doesn't print enough of the error message when using HTTP_PROXY X-Send-Pr-Version: 3.2 >Number: 2527 >Category: bin >Synopsis: fetch doesn't print enough of the error message when using HTTP_PROXY >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 18 17:30:02 PST 1997 >Closed-Date: Sat Jul 5 11:13:55 PDT 1997 >Last-Modified: Sat Jul 5 11:14:16 PDT 1997 >Originator: Bill Fenner >Release: FreeBSD 2.2-BETA_A i386 >Organization: Xerox >Environment: 2.2 BETA Firewalled environment, using fetch with HTTP_PROXY set Running squid 1.0.18 on the proxy >Description: When the ftp fails, fetch does not display enough of the returned HTML for the user to understand what failed. Example: ftp://ftp.netscape.com/pub/navigator/3.01/unix/netscape-v301-export.x86-unknown-bsd.tar.gz fetching failed, header so far: HTTP/1.0 500 Proxy Error Date: Sunday, 19-Jan-97 01:16:56 GMT Expires: Sunday, 19-Jan-97 01:21:56 GMT MIME-Version: 1.0 Server: Squid 1.0.18 Content-Type: text/html ERROR: The requested URL could not be retrieved

ERROR

The requested URL could not be retrieved


While trying to retrieve the URL: ftp://ftp.netscape.com/pub/navigator/3.01 The rest of the error message that squid returns includes: The following FTP error was encountered:

This means that:

    A network socket error occurred.  Please try again.

which would be really nice to see. >How-To-Repeat: fetch a file using a squid proxy, get an FTP error. >Fix: make fetch print the whole error message. I suspect that #define'ing S to something bigger (like 2048) might be enough, but I can't really figure out exactly how filter() actually works so I'm not sure. >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: fenner State-Changed-When: Sat Jul 5 11:13:55 PDT 1997 State-Changed-Why: Fixed in rev 1.5 of fetch/http.c >Unformatted: