From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris McMahan Newsgroups: gmane.emacs.help Subject: Re: How to make emacs-w3m use proxy to browse webpages? Date: Thu, 02 Oct 2008 09:01:55 -0400 Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: <7s7i8r40cc.fsf@one.dot.net> References: <871vz1hyfy.fsf@manatee.domain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1222954876 30861 80.91.229.12 (2 Oct 2008 13:41:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2008 13:41:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 02 15:42:04 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KlORP-0000fd-Tm for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Oct 2008 15:42:04 +0200 Original-Received: from localhost ([127.0.0.1]:55530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlOQM-00026q-V6 for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Oct 2008 09:40:58 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!transit3.readnews.com!news-out.readnews.com!transit4.readnews.com!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 55 Original-NNTP-Posting-Host: panix5.panix.com Original-X-Trace: reader1.panix.com 1222952496 14809 166.84.1.5 (2 Oct 2008 13:01:36 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Thu, 2 Oct 2008 13:01:36 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) Cancel-Lock: sha1:odCZz/UMM5Nv8OqFKT7JJLD5QUw= Original-Xref: news.stanford.edu gnu.emacs.help:162944 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58284 Archived-At: Andy Stewart writes: > Hi, everyone! > > Use emacs-w3m browse webpages in emacs is so cool! > > But sometimes, webpages need to browse use proxy, otherwise those > webpages will dead in emacs-w3m. > > So have a possible to make emacs-w3m browse webpages use proxy, > and how to configuration? > > Thanks for your help! > > Andy. This might help you... it's from the info page for emacs-w3m: `Proxy Gateway' If you are behind a firewall and access the Internet through a proxy gateway, you need to instruct w3m to use it. There are several ways to do this, one is to set the `http_proxy' environment variable globally in the shell something like: setenv http_proxy http://proxy.hogege.com:8000/ Another way is to customize the `w3m-command-arguments' variable to add the options `-o' and `http_proxy=http://PROXY_SERVER_NAME:PORT/'. This can also be done in your `~/.emacs-w3m' file as shown below: (setq w3m-command-arguments (nconc w3m-command-arguments '("-o" "http_proxy=http://proxy.hogege.com:8000/"))) To specify hosts for which the proxy shouldn't be used (Intranet sites and the like), set the `no_proxy' (note that it is not `no-proxy') environment variable to a comma-separated list of hostnames. Alternatively, you can set the `w3m-no-proxy-domains' variable to a list of domain names (not host names) as follows: (setq w3m-no-proxy-domains '("local.com" "neighbor.com")) See also the documentation of the `w3m-command-arguments-alist' variable for instructions on how to use regexps to specify `no_proxy' hosts. -- (. .) =ooO=(_)=Ooo===================================== Chris McMahan | first_initiallastname@one.dot.net =================================================