From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Stripping HTTP headers from an HTTP response? Date: Wed, 16 Dec 2009 08:50:29 +1100 Organization: Rapt Technologies Message-ID: <87oclzkiu2.fsf@lion.rapttech.com.au> References: <0e7021ea-7b88-4631-ad47-d241eb54d6eb@j19g2000yqk.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260916844 15994 80.91.229.12 (15 Dec 2009 22:40:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Dec 2009 22:40:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 15 23:40:38 2009 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 1NKg4L-0002ga-Bk for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Dec 2009 23:40:37 +0100 Original-Received: from localhost ([127.0.0.1]:50738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKg4L-0006Jw-5F for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Dec 2009 17:40:37 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:bTm011EZbVqBFuYBrQ2O4xUJ+Tw= Original-Lines: 28 Original-NNTP-Posting-Host: 02d74984.news.astraweb.com Original-X-Trace: DXC=XWQjo`O0Z4K; VG4FH7<>QG`NA_=I6aR7jI?F[XK99=b\o1BKCCQUG[m0]I Original-Xref: news.stanford.edu gnu.emacs.help:175595 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:70670 Archived-At: Klaus Straubinger writes: > Elena wrote: > >> I'd like to get some HTML documents via HTTP for processing. > > url-insert-file-contents is a good function to use for that purpose, > probably in a temporary buffer. > > For interactive use, you could also try browse-url-emacs. > >> Should I just strip lines until the first empty one > > This works, too. There is also wget.el, which provides an interface to wget, which will work through a proxy. However, from memory (which is a bit rusty), I seem to remember there was either a function in url.el which would either strip the headers or return the contents without headers. Check for optional arguments on some of the functions. There is also an interface to curl for emacs. Another place to get some ideas would be the sources to emacs w3. Tim -- tcross (at) rapttech dot com dot au