Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jan 1997 17:28:01 PST
From:      Bill Fenner <fenner@parc.xerox.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/2527: fetch doesn't print enough of the error message when using HTTP_PROXY
Message-ID:  <199701190128.RAA18872@fenestro.parc.xerox.com>
Resent-Message-ID: <199701190130.RAA11136@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 18 17:30:02 PST 1997
>Last-Modified:
>Originator:     Bill Fenner
>Organization:
Xerox
>Release:        FreeBSD 2.2-BETA_A i386
>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

<HTML><HEAD>
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
</HEAD><BODY><H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR>
<P>
While trying to retrieve the URL:
<A HREF="ftp://ftp.netscape.com/pub/navigator/3.01/unix/netscape-v301-export.x86-unknown-bsd.tar.gz">ftp://ftp.netscape.com/pub/navigator/3.01


	The rest of the error message that squid returns includes:

The following FTP error was encountered:
<UL>
<LI><STRONG>ftp.netscape.com (port 21): (0) Error 0</STRONG>
</UL>
<P>This means that:
<PRE>
    A network socket error occurred.  Please try again.
</PRE>
<P>


	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.

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701190128.RAA18872>