emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing user agent on eww


From: Vibhav Pant
Subject: Re: Changing user agent on eww
Date: Sat, 18 Jan 2014 22:32:32 +0530
User-agent: mu4e 0.9.9.5; emacs 24.3.50.1

-----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
address@hidden
-----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-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]