cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Fetch particular page in particular language

From: Nick Zitzmann <nick_at_chronosnet.com>
Date: Wed, 13 Nov 2013 18:01:44 -0600

On Nov 13, 2013, at 11:50 AM, frank ernest <doark_at_mail.com> wrote:

> How do I tell curl what language I'd like the html/xhtml/txt/etc. page in?

Assuming you meant human languages:
curl -H "Accept-Language: ${ISO_LANGUAGE_ABBREVIATION}" ${YOUR_URL_HERE}

…where ${ISO_LANGUAGE_ABBREVIATION} is like “en” for English, “es” for Spanish, etc. There’s a list of these out there somewhere.

Nick Zitzmann
<http://www.chronosnet.com/>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-11-14