From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Emacs and proxy on w32 Date: Sun, 24 Jul 2005 00:39:23 +0200 Message-ID: <42E2C71B.5@student.lu.se> References: <42E13F59.5090101@student.lu.se> <42E16E0C.80507@student.lu.se> <42E17593.6040600@student.lu.se> <42E17836.8080405@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1122158497 16326 80.91.229.2 (23 Jul 2005 22:41:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Jul 2005 22:41:37 +0000 (UTC) Cc: Emacs Devel , Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 24 00:41:28 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DwSgK-0003Q3-Ph for ged-emacs-devel@m.gmane.org; Sun, 24 Jul 2005 00:41:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DwShU-00063e-VH for ged-emacs-devel@m.gmane.org; Sat, 23 Jul 2005 18:42:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DwSh7-0005qM-Rp for emacs-devel@gnu.org; Sat, 23 Jul 2005 18:42:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DwSgk-0005aQ-2B for emacs-devel@gnu.org; Sat, 23 Jul 2005 18:41:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DwSgi-0005Nx-NW for emacs-devel@gnu.org; Sat, 23 Jul 2005 18:41:44 -0400 Original-Received: from [81.228.8.83] (helo=pne-smtpout1-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DwSoe-0002Yf-7L; Sat, 23 Jul 2005 18:49:56 -0400 Original-Received: from [192.168.123.121] (83.249.205.6) by pne-smtpout1-sn2.hy.skanova.net (7.2.060.1) id 42BFBBD20044394F; Sun, 24 Jul 2005 00:39:23 +0200 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: Benjamin Riefenstahl In-Reply-To: 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:41170 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41170 Benjamin Riefenstahl wrote: >Hi Lennart, > > >Lennart Borgman writes: > > >>But how do you get the name of the proxy server to use for a specif >>URL then? >> >> > >You don't. That is unless you write your own script in ELisp. > > > >>Don't you have to find the ECMAscript and execute it? >> >> > >Javascript/ECMAscript is a feature of some browsers. It is *not* a >feature of all those other programs that can otherwise do HTTP fine, >and even a fair number of browsers don't have it. If you want to >seriously support more than IE and Mozilla, Javascript proxy scripts >are useless. > > Thanks Benny, I did not believe it was such a mess. I did expect it to be something that the OS provided. I just thought that I could not find it. While looking more at this I found that MS actually are providing an API (WinHttpGetProxyForUrl) for this now on XP and W2k. This should perhaps be rather simple to call on w32 to give Emacs the possibility to handle HTTP proxies. However of course we want Emacs to have this power on GNU/Linux too! I believe that GNU/Linux should benefit from having an API like WinHttpGetProxyForUrl. Maybe it does have it already? Otherwise are not the capabilities for this in the Mozilla code? Are there code that code be copied to GNU/Linux perhaps? (Where should a suggestion like this go?)