unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Rüdiger Sonderfeld" <ruediger@c-plusplus.de>
To: emacs-devel@gnu.org
Cc: Vibhav Pant <vibhavp@gmail.com>
Subject: Re: Changing user agent on eww
Date: Sat, 18 Jan 2014 15:16 +0100	[thread overview]
Message-ID: <16166511.vzeQlYYo3r@descartes> (raw)
In-Reply-To: <a8892113-f4d5-40e3-9e59-564c59d7c503@email.android.com>

On Saturday 18 January 2014 18:40:02 Vibhav Pant wrote:
> Is it possible to change the user agent for fetching pages on eww (something
> like a variable or a command)? --

Kinda, eww uses url.el to fetch webpages.  Url.el has no direct variable to 
set the User-agent.  But if you set `url-privacy-level' to `paranoid' no User-
agent is sent at all.  The function `url-http-user-agent-string' is used to 
create the User-agent string.  You should be able to override it, to send 
whatever User-agent string you prefer.  Maybe we should add a variable for the 
user agent to make it easier to customize.

Regards,
Rüdiger




  reply	other threads:[~2014-01-18 14:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-18 13:10 Changing user agent on eww Vibhav Pant
2014-01-18 14:16 ` Rüdiger Sonderfeld [this message]
2014-01-18 17:02   ` Vibhav Pant
2014-01-23 23:52   ` Changing user agent on eww [OT] Trent W. Buck
2014-01-24  1:50     ` Stefan Monnier
2014-01-24  4:27       ` chad
2014-01-24 14:55       ` Richard Stallman
2014-01-24 16:13         ` Stefan Monnier
2014-01-25 13:27           ` Richard Stallman
2014-01-25 21:51             ` Stefan Monnier
2014-01-26 13:47             ` Simon Leinen
2014-01-26 14:35               ` Yuri Khan

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16166511.vzeQlYYo3r@descartes \
    --to=ruediger@c-plusplus.de \
    --cc=emacs-devel@gnu.org \
    --cc=vibhavp@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).