From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [gotoh@taiyo.co.jp: url-gw.el: Cannot use proxy with url-gw.el 1.15] Date: Wed, 08 Nov 2006 21:23:30 -0500 Message-ID: <87ac31tl25.fsf@furball.mit.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1163039069 23058 80.91.229.2 (9 Nov 2006 02:24:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Nov 2006 02:24:29 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 09 03:24:26 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GhzaT-0006Rz-Pm for ged-emacs-devel@m.gmane.org; Thu, 09 Nov 2006 03:24:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GhzaT-0005TX-98 for ged-emacs-devel@m.gmane.org; Wed, 08 Nov 2006 21:24:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GhzaH-0005Sm-4J for emacs-devel@gnu.org; Wed, 08 Nov 2006 21:24:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GhzaG-0005Sd-Qs for emacs-devel@gnu.org; Wed, 08 Nov 2006 21:24:04 -0500 Original-Received: from [18.72.1.2] (helo=south-station-annex.mit.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GhzaG-00064B-Pf for emacs-devel@gnu.org; Wed, 08 Nov 2006 21:24:04 -0500 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id kA92NioY021991; Wed, 8 Nov 2006 21:23:44 -0500 (EST) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id kA92NVPE001170; Wed, 8 Nov 2006 21:23:32 -0500 (EST) Original-Received: from furball.mit.edu (SYDNEYPACIFIC-FOUR-FORTY-FOUR.MIT.EDU [18.95.6.189]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id kA92NU37021737; Wed, 8 Nov 2006 21:23:31 -0500 (EST) Original-Received: from cyd by furball.mit.edu with local (Exim 3.36 #1 (Debian)) id 1GhzZi-0000rE-00; Wed, 08 Nov 2006 21:23:30 -0500 Original-To: Magnus Henoch In-Reply-To: (Richard Stallman's message of "Wed\, 08 Nov 2006 19\:54\:31 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux) X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: -2.599 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:61983 Archived-At: > From: Shun-ichi GOTO > Subject: url-gw.el: Cannot use proxy with url-gw.el 1.15 > To: emacs-pretest-bug@gnu.org > > Url package in cvs head cannot use http proxy. > # gateway method is default (native). > > For example, this simple code fail with url-gw.el rev 1.15 > (url-retrieve "http://www.gnu.org/" 'ignore)) > but success with url-gw.el rev 1.14. > > With rev 1.15, url-retrieve issue GET requests > GET http://zippo:8080/... (incorrect!) > against proxy server instead of > GET http://www.gnu.org/... (correct) > > (Note: zippo:8080 is proxy in my local net) I don't know if this is directly related, but in url-gw.el:252, (setq conn (case gw-method (tls (open-tls-stream name buffer host service)) (ssl (open-ssl-stream name buffer host service)) ((native) ;; Use non-blocking socket if we can. (make-network-process :name name :buffer buffer shouldn't `(native)' be replaced by `native'?