From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: Fetching by MID: wget vs. curl
Date: Fri, 30 Sep 2005 22:11:12 +0200 [thread overview]
Message-ID: <v9wtkye2ov.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <85k6gzwm26.fsf@obelix.seki.fr>
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/
prev parent reply other threads:[~2005-09-30 20:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <df1eej$l94$3@ebel.dfakt.de>
[not found] ` <v9k6i0fpzh.fsf@marauder.physik.uni-ulm.de>
[not found] ` <v9d5nr1lq4.fsf@marauder.physik.uni-ulm.de>
[not found] ` <dfbe3b$805$1@ebel.dfakt.de>
[not found] ` <v9u0h0r66t.fsf@marauder.physik.uni-ulm.de>
[not found] ` <1127812382.193127.245610@o13g2000cwo.googlegroups.com>
[not found] ` <v9ll1ifzwe.fsf@marauder.physik.uni-ulm.de>
[not found] ` <m2wtl24jwp.fsf@seki.fr>
[not found] ` <m2hdc64h9e.fsf@seki.fr>
2005-09-27 18:36 ` Fetching by MID: wget vs. curl (was: Support fuer das neue groups.google.com) Reiner Steib
[not found] ` <85k6gzwm26.fsf@obelix.seki.fr>
2005-09-30 20:11 ` Reiner Steib [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=v9wtkye2ov.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).