From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vibhav Pant Newsgroups: gmane.emacs.devel Subject: Re: Changing user agent on eww Date: Sat, 18 Jan 2014 22:32:32 +0530 Message-ID: <87r485gr8d.fsf@cthulhu-p5kpl.lan> References: <16166511.vzeQlYYo3r@descartes> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1390064581 22414 80.91.229.3 (18 Jan 2014 17:03:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jan 2014 17:03:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?utf-8?Q?R=C3=BCdiger_Sonderfeld?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 18 18:03:08 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W4ZIZ-00005B-Tj for ged-emacs-devel@m.gmane.org; Sat, 18 Jan 2014 18:03:08 +0100 Original-Received: from localhost ([::1]:43722 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4ZIZ-0002fo-HY for ged-emacs-devel@m.gmane.org; Sat, 18 Jan 2014 12:03:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4ZIO-0002da-EK for emacs-devel@gnu.org; Sat, 18 Jan 2014 12:03:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4ZIF-0006JK-TG for emacs-devel@gnu.org; Sat, 18 Jan 2014 12:02:56 -0500 Original-Received: from mail-pb0-x22c.google.com ([2607:f8b0:400e:c01::22c]:40260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4ZIF-0006IY-KF for emacs-devel@gnu.org; Sat, 18 Jan 2014 12:02:47 -0500 Original-Received: by mail-pb0-f44.google.com with SMTP id rq2so5356743pbb.3 for ; Sat, 18 Jan 2014 09:02:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:message-id:references:user-agent:in-reply-to :date:mime-version:content-type:content-transfer-encoding; bh=VXH79D+kLkg3fy5FaFjNfsSB0I3UcAS8BAgwGdH/DGU=; b=y9bojGnmcYrTWEcslNKqBiyWGVSsSCDhgFYi+NyvyR87ZsCbXvkUQWcdk5WtpmRXJg l8uPraXRv7plklWz02i2EhmXOAA/cYRYyMqcmRDwpgbeyMFmPvMLSzOxRJO9tsNxLcVY nv0r0ycN63sTT7vphM1h3KxiIiaNsnfnZByOB95IFYYGZdDoKe/x1a+lMFiwagrzTsdk ocQlWz92WP0vwM9fQbY/3XtWnG2ltOhjPeNEcS/QO1fda2HxaWp6e5yXMoMH9frt74EZ nb4IEnZoaYravwo1LvYamfQg11t0Sl/CgB88blpMlF/yt1fXfV3fHQ5GCe+9gPHp+sC7 2SAw== X-Received: by 10.68.251.133 with SMTP id zk5mr8963048pbc.69.1390064566342; Sat, 18 Jan 2014 09:02:46 -0800 (PST) Original-Received: from cthulhu-p5kpl.lan ([117.201.84.217]) by mx.google.com with ESMTPSA id pq1sm31558412pbc.8.2014.01.18.09.02.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jan 2014 09:02:45 -0800 (PST) User-agent: mu4e 0.9.9.5; emacs 24.3.50.1 In-reply-to: <16166511.vzeQlYYo3r@descartes> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c01::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:168695 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 RĂ¼diger Sonderfeld writes: > 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. I had a look at the function url-http-create-request. The user-agent string is set by simply calling url-http-user-agent-string, which in turn concats the "User Agent: URL/" and the URL package version. This could be customised by adding a user-defined variable (string) url-(custom-)user-agent-string, which the user-agent-string could return. This could be nil by default, in which case the vanila string would be returned. If this sounds good, I can create a patch this. - -- Vibhav Pant vibhavp@gmail.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBCgAGBQJS2rOSAAoJEO86onTybWtcSfQP/RF+6bpn/nG5+l7e0H1V8qQR 1iWwj90yj8mljnnnEGixnezCPvxudR/UIrXgDl0qzP7qUGF94LSzdI4MJGDmHhOV BYycEIbe2kw1LwzQWX38cSk6LRGaa8Ad5tJu82in8RIn8dU6WysfLEAYXfcDuen8 qa5I3CV1hX+IybrKIQ1wkPM7pQ4FhJW4EsFXTiN1SyIvYRQDit0DUSBuc8/1OVFN taGfQEa66JG5subZvtyESBPh/SXHEbbq89FG3S1ESMnOhg1d8VwS0TI7pT7iBXwT J5PwmyTdM45paa6EcXy1ZUI3ru62UuQXIDdVASRWCQuaqH/Xcgh8vlgR8rd3W8nl KkpGyV2O6BTJ1QEDtP2J4jmPzl4Szh/X1XLCljZKAuqENcusAaK3N5IDT0b2QQCy DE1kp7h57kp0NthxGDY0hnLmtMYRIt59boVZewg8nhIi/TUnfTQacBtsKb78zZFi JDSLmAoHHV0r8QMm5hbDskAwWTYYKt76dmnMODKecV4QEVYFL+C1DAvVj1Aur8sK +v7bjYc4/c0IPCPm+jBDfAvsq4b+NBc7BLDyyHReppOXjmnaEfyHFEyjm40zSbuS kLFqfzG6dO6By8IDZVDllycejqFwrcmsW7yrJ72vnP8lQZwCT+k84E2yexTd6DzR yP5ffQXBBZwXnvNlMmeu =Ewxz -----END PGP SIGNATURE-----