Package: w3-el-e21
Version: 4.0pre.2001.10.27-19
Severity: normal

Steps to reproduce:
0) Setup privoxy or some other proxy software to run at 'proxy-host'.
1) http_proxy=http://proxy-host:3128/ emacs -nw
2) M-x browse-url-w3 RET http://www.slashdot.org

Expected results:
2) w3 should render slashdot frontpage.

Actual results:
2) w3 prints "Downloading of `http://slashdot.org/' complete." and
renders nothing visible to the user.

To investigate the problem further I captured all traffic with
tcpdump. I noticed that w3 opens only _one_ TCP connection and reuses
it for the second HTTP request even though it has sent "Connection:
close". That kind of reuse seems to be forbidden by RFC 2616 chapter
8.1.2.1:

   "If either the client or the server sends the close token in the
    Connection header, that request becomes the last one for the
    connection."

Here's contents of the TCP stream decoded with ethereal:

GET http://www.slashdot.org/ HTTP/1.1
MIME-Version: 1.0
Connection: close
Extension: Security/Digest Security/SSL
Host: www.slashdot.org
Accept-charset: iso-8859-15;q=1, iso-8859-1;q=0.5, iso-8859-2;q=0.5, 
iso-8859-3;q=0.5, iso-8859-4;q=0.5, iso-8859-5;q=0.5, iso-8859-7;q=0.5, 
iso-8859-8;q=0.5, iso-8859-9;q=0.5, gb2312;q=0.5, euc-jp;q=0.5, euc-kr;q=0.5, 
iso-8859-14;q=0.5, big5;q=0.5, iso-2022-jp;q=0.5, koi8-r;q=0.5, 
shift_jis;q=0.5, utf-8;q=0.5, viscii;q=0.5, hz-gb-2312;q=0.5, 
iso-2022-cn-ext;q=0.5, iso-2022-cn;q=0.5, iso-2022-jp-2;q=0.5, iso-2022-kr;q=0.5
Accept: */*
User-Agent: Emacs-W3/Exp URL/Exp (i486-pc-linux-gnu; TTY)

HTTP/1.1 301 Moved Permanently
Date: Tue, 07 Mar 2006 14:58:46 GMT
Server: Apache/1.3.33 (Unix) mod_gzip/1.3.26.1a mod_perl/1.29
Location: http://slashdot.org/
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
X-Pad: avoid browser bug
Connection: close

12b
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>301 Moved Permanently</TITLE>
</HEAD><BODY>
<H1>Moved Permanently</H1>
The document has moved <A HREF="http://slashdot.org/";>here</A>.<P>
<HR>
<ADDRESS>Apache/1.3.33 Server at www.slashdot.org Port 8080</ADDRESS>
</BODY></HTML>

0

GET http://slashdot.org/ HTTP/1.1
MIME-Version: 1.0
Connection: close
Extension: Security/Digest Security/SSL
Host: slashdot.org
Accept-charset: iso-8859-15;q=1, iso-8859-1;q=0.5, iso-8859-2;q=0.5, 
iso-8859-3;q=0.5, iso-8859-4;q=0.5, iso-8859-5;q=0.5, iso-8859-7;q=0.5, 
iso-8859-8;q=0.5, iso-8859-9;q=0.5, gb2312;q=0.5, euc-jp;q=0.5, euc-kr;q=0.5, 
iso-8859-14;q=0.5, big5;q=0.5, iso-2022-jp;q=0.5, koi8-r;q=0.5, 
shift_jis;q=0.5, utf-8;q=0.5, viscii;q=0.5, hz-gb-2312;q=0.5, 
iso-2022-cn-ext;q=0.5, iso-2022-cn;q=0.5, iso-2022-jp-2;q=0.5, iso-2022-kr;q=0.5
Accept: */*
User-Agent: Emacs-W3/Exp URL/Exp (i486-pc-linux-gnu; TTY)
If-modified-since: Tuesday, 06-Mar-06 22:20:27 GMT


Last bytes in hex are

00000513  64 61 79 2c 20 30 36 2d  4d 61 72 2d 30 36 20 32 day, 06- Mar-06 2
00000523  32 3a 32 30 3a 32 37 20  47 4d 54 0d 0a 0d 0a    2:20:27  GMT....

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.29sauna
Locale: LANG=C, LC_CTYPE=fi_FI (charmap=ISO-8859-1)

Versions of packages w3-el-e21 depends on:
ii  emacs21                     21.4a-3      The GNU Emacs editor
ii  w3-url-e21                  2005.10.23-5 URL library for use by w3-el-e21

Versions of packages w3-el-e21 recommends:
ii  mime-support                  3.36-1     MIME files 'mime.types' & 'mailcap

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to