From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61058 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: Fetching by MID: wget vs. curl Date: Fri, 30 Sep 2005 22:11:12 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: <1127812382.193127.245610@o13g2000cwo.googlegroups.com> <85k6gzwm26.fsf@obelix.seki.fr> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1128112985 20298 80.91.229.2 (30 Sep 2005 20:43:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Sep 2005 20:43:05 +0000 (UTC) Original-X-From: ding-owner+m9590@lists.math.uh.edu Fri Sep 30 22:42:58 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ELRh4-0002hl-NB for ding-account@gmane.org; Fri, 30 Sep 2005 22:41:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1ELRgy-000373-00; Fri, 30 Sep 2005 15:41:16 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1ELRgk-00035v-00 for ding@lists.math.uh.edu; Fri, 30 Sep 2005 15:41:02 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1ELRgh-0003t3-SI for ding@lists.math.uh.edu; Fri, 30 Sep 2005 15:41:02 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ELRgh-0005Ze-00 for ; Fri, 30 Sep 2005 22:40:59 +0200 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1ELRgg-0002aS-Gl for ding@gnus.org; Fri, 30 Sep 2005 22:40:58 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Sep 2005 22:40:58 +0200 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Sep 2005 22:40:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 39 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: 'bg&jY[8V'W&:=~6w"|>}#4/T;w~36ei4NNMyKRR.a$n=$|sWFPF1y]a\>6kc\*#GN]UDM| Ywv,vbL^XF1nIp\:F=$Ei2o&mEe:%N~,:3]vtQ~s9u$9izmX$IF@VgGl7/,^dbuM<3|AO2}.%|%?kZ 2Y=@\U!~cll^=8Z9ihKq%wmUe1Ky(#kl3T'>Qk0Ia3mCBsTk?E(,X Mail-Copies-To: nobody User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:6IVHWIN3QP9RNY/AkdM/OGPB4Sc= X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61058 Archived-At: On Fri, Sep 30 2005, Sébastien Kirche wrote: > I have discovered how to use curl for querying Google. > > I have spent some time with ethereal (network monitor) to study > carefully the dialog between curl/wget and the Google server. > > In both cases, Google answers the request by a redirection (actually 2 > successive redirections). > > Simply wget can follow the redirections "out of the box" by sending > automatically some further requests. > > Curl can too, but you need to use the -L / --location setting. > > I have also noticed that the user-agent matters. Sometimes Google > returns an unauthorized response. Using "mm-url" is fine. [...] > curl --silent --user-agent mm-url --location \ > "http://www.google.com/groups?as_umsgid=$mid&hl=en&dmode=source" > > ...works now perfectly. Maybe it could be worth to tell to others users > of Gnus ? I will add the options to `mm-url-predefined-programs'. I don't have CVS access in the next few days; maybe someone else can install it earlier (in v5-10 and trunk): (defvar mm-url-predefined-programs '((wget "wget" "--user-agent=mm-url" "-q" "-O" "-") (w3m "w3m" "-dump_source") (lynx "lynx" "-source") (curl "curl" "--user-agent mm-url" "--location" "--silent"))) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/