From unknown Thu Aug 14 21:46:42 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#23253 <23253@debbugs.gnu.org> To: bug#23253 <23253@debbugs.gnu.org> Subject: Status: 25.0.90; url-retrieve ignores url-mime-accept-string and most other url variables Reply-To: bug#23253 <23253@debbugs.gnu.org> Date: Fri, 15 Aug 2025 04:46:42 +0000 retitle 23253 25.0.90; url-retrieve ignores url-mime-accept-string and most= other url variables reassign 23253 emacs submitter 23253 Cl=C3=A9ment Pit--Claudel severity 23253 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 09 14:52:19 2016 Received: (at submit) by debbugs.gnu.org; 9 Apr 2016 18:52:19 +0000 Received: from localhost ([127.0.0.1]:56352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoxzW-0004t1-WF for submit@debbugs.gnu.org; Sat, 09 Apr 2016 14:52:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoxzV-0004sp-KM for submit@debbugs.gnu.org; Sat, 09 Apr 2016 14:52:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoxzP-0000uA-I7 for submit@debbugs.gnu.org; Sat, 09 Apr 2016 14:52:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoxzP-0000u6-EU for submit@debbugs.gnu.org; Sat, 09 Apr 2016 14:52:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoxzO-0004w9-Bl for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2016 14:52:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoxzL-0000tX-5D for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2016 14:52:10 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:51498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoxzK-0000tH-Sg for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2016 14:52:07 -0400 Received: from [18.189.83.142] ([18.189.83.142]) by mrelayeu.kundenserver.de (mreue001) with ESMTPSA (Nemesis) id 0LvtTJ-1brh600TIj-017oQ6 for ; Sat, 09 Apr 2016 20:52:05 +0200 From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Subject: 25.0.90; url-retrieve ignores url-mime-accept-string and most other url variables To: bug-gnu-emacs@gnu.org Message-ID: <57094F4E.7080207@live.com> Date: Sat, 9 Apr 2016 14:51:58 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="COj1tFPtGrFuscxTbuCf85HLmSLTejI95" X-Provags-ID: V03:K0:0r3LANKb8yXa0Sq7YAw2fQCVV6evTU6DpFO2BHXOxib4njtMwH9 HHCPAaqKTQ1a2df9PJwfnvPKRSu8ds79wR1FpNEplRkklB72yl+lrtJ2WE++rh/UHF3n7JD 9idwYiDohgTclKXfuDhmMg9WeqgLn67JekmIi6AamNTo+FhHFo9U/9YgLKN5kKBR2Z5JQqH YPXhQc8GNsDB8Edg15yPA== X-UI-Out-Filterresults: notjunk:1;V01:K0:SP4tu0aaxmE=:LBdidxmCZ0HuzwEUKM5hvI e01ZZ7Xf9NFxV16MnVnFw7A3P+7fVdG519OoB3qSkrFGpkeuar+26QIUr1F38f4L3zQ2oWmdb dNo3hgF/C2UIISBB/HClrf4iZAkT28/RbmPumbNX6+V/DsG0ADfqKk6XHIgpfhYI/UxAqegc8 jfBSByRs6hQR4/QXNyaBgHsDL3im71Pt6xe7YhqRUA9QPMrxbfMT7j6Oabf5KssshXUerLgkZ O6SA/ulFY+QHLgRZiZPGDCYVE5P8pGmjKubwMAndUmXZTvtskiEK/a2PeosxXM6TIhOdxTWNi 6mLX9cNgKNG8pk7UFJvOe3uQLRt6SXefX9c/cPt4LoDXPUE2gHlUvy7nRYL1O1C02NLCBqL0G kaW8YldjBpXgrBF/IhKwSmpJTaEXfnZsUUvmCJZOj4iCxOBwqqIj3Q263oZfCQ2GfjUaR+Sm0 48SGBBcK7HjgwifTUD501ODmTe0cfpySIdilsmkmblcebFoFkbyPe+TgIaGPox/bEDW/GDRBv dd+ZhAch3cIzhewVvIu9SCeKzrSAgEy++t3Sp0o1kqmGpscWClktbVFOZP6Y0JbaFyR740lr7 EYKmTUY3udlmjwAu/dsg9KfizpoO5yBbRmXTz4Mrrx2xVxY2Bh4Y4rf6dsu3ZQQEpYCfQoeSZ 30XTp4BAGHaknRNYl2o6qezemxn5rwPHo17XAG+T5VDq168ByA1Yf2tSsaGoBLxga8nE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --COj1tFPtGrFuscxTbuCf85HLmSLTejI95 Content-Type: multipart/mixed; boundary="RbrcpRgG24AWl6ax7hlo0qWFwWhlBuu96" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: bug-gnu-emacs@gnu.org Message-ID: <57094F4E.7080207@live.com> Subject: 25.0.90; url-retrieve ignores url-mime-accept-string and most other url variables --RbrcpRgG24AWl6ax7hlo0qWFwWhlBuu96 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable The doc string of url-retrieve says: > The variables =E2=80=98url-request-data=E2=80=99, =E2=80=98url-request-= method=E2=80=99 and > =E2=80=98url-request-extra-headers=E2=80=99 can be dynamically bound ar= ound the > request; dynamic binding of other variables doesn=E2=80=99t necessarily= > take effect. It seems that there is no way to set =E2=80=98url-mime-encoding-string=E2= =80=99, =E2=80=98url-mime-charset-string=E2=80=99, and =E2=80=98url-mime-= accept-string=E2=80=99 for a single asynchronous query (things work with = =E2=80=98url-retrieve-synchronously=E2=80=99, but not with =E2=80=98url-r= etrieve=E2=80=99). More precisely: this sends a query with =E2=80=98Accept: */*=E2=80=99, an= d prints nil: (let ((url-mime-accept-string "abc/def")) (url-retrieve "http://www.gnu.org/software/emacs/" (lambda (&rest _) (message "url-retrieve: %S" url-mime-accept-string)))) but this sends a query with =E2=80=98Accept: abc/def=E2=80=99, and prints= =E2=80=9Cabc/def=E2=80=9D: (let ((url-mime-accept-string "abc/def")) (with-current-buffer (url-retrieve-synchronously "http://www.gnu.org/software/emacs/") (message "url-retrieve: %S" url-mime-accept-string))) If this is exepcted, could we document the proper way to set an Accept he= ader? Cl=C3=A9ment. In GNU Emacs 25.0.90.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2016-02-23 built on clem-w50-mint Repository revision: f1dc3dc63ae4e454ca0e98eebbd80f0ba9d5c356 Windowing system distributor 'The X.Org Foundation', version 11.0.1150100= 0 System Description: Linux Mint 17.3 Rosa Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix --RbrcpRgG24AWl6ax7hlo0qWFwWhlBuu96-- --COj1tFPtGrFuscxTbuCf85HLmSLTejI95 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJXCU9TAAoJEPqg+cTm90wjhasP/2EGg0DR3Lx0AxJ9fEMrTCMs 78pp6/x1lLLcWnA/P5k8hcf0oIBA6wqOaQMHR3k0qJTMCL1wn+hU9pI2jWGnkEJU cH4PpzdQaO9hJIaqO7SORxDCx5dY9Muff5PG9j52sTrnJZFV117iCPS6i+LO3Tw+ OuzS2BoRtgYP2OP4W4tiibwdTupGVZYsEFZyeKmco8hwksez2jzv+5a0ZlOV+bqf 3ZpXNZRHjp1EqIyFbox2F+7uset18gZ0t1dW0hqUOnpDDfmhkITVBp4WiLZu5Rjp WoaPktEnZMzDO+HuTy0UFKPuJw1S/erdb11GXVNAJKhf3S7TN8s955r5huKGSUfe wF6J9+kyudzoXBxxNe9I1jslVCIBCeR49E7I4B/5O4BcoK/QHNn3cM6xxIMGTcNo ejjBh+WUS/KCAe+616o7OZ3PWge3xfJRKEhK9xF7raFRRWzIkW1U8eg0n2zQHuY8 LaOQVX53NHpAYn8aGpgLndCiajqnWAnhAeaFhGTWXmvRBxIxdqxH5sl+MdJ7ABP5 n63FArqYSbjjWuVXeaNlMS2YWmspH33fyCuZwsxTXPTKbEt9QxuQqBM9pyR2vVv3 fRkOse6VUXQ5VRoP5ijU4O42CD61p7rKLdmE5Y1IuN4HYA1asCHbtonc95cQzJs4 7JreigyGS4D2Lx+i15RD =UYl9 -----END PGP SIGNATURE----- --COj1tFPtGrFuscxTbuCf85HLmSLTejI95-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 15 00:38:18 2019 Received: (at 23253) by debbugs.gnu.org; 15 May 2019 04:38:18 +0000 Received: from localhost ([127.0.0.1]:50711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQlgI-0006OD-4Q for submit@debbugs.gnu.org; Wed, 15 May 2019 00:38:18 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:36606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQlgF-0006O4-Sk for 23253@debbugs.gnu.org; Wed, 15 May 2019 00:38:16 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1hQlgB-00067d-Nz; Wed, 15 May 2019 06:38:13 +0200 From: Lars Ingebrigtsen To: =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel Subject: Re: bug#23253: 25.0.90; url-retrieve ignores url-mime-accept-string and most other url variables References: <57094F4E.7080207@live.com> Date: Wed, 15 May 2019 06:38:06 +0200 In-Reply-To: <57094F4E.7080207@live.com> (=?utf-8?Q?=22Cl=C3=A9ment?= Pit--Claudel"'s message of "Sat, 9 Apr 2016 14:51:58 -0400") Message-ID: <87tvdwwcwh.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 23253 Cc: 23253@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Cl=C3=A9ment Pit--Claudel writes: > It seems that there is no way to set =E2=80=98url-mime-encoding-string=E2= =80=99, =E2=80=98url-mime-charset-string=E2=80=99, and =E2=80=98url-mime-ac= cept-string=E2=80=99 for a single asynchronous query (things work with =E2= =80=98url-retrieve-synchronously=E2=80=99, but not with =E2=80=98url-retrie= ve=E2=80=99). > > More precisely: this sends a query with =E2=80=98Accept: */*=E2=80=99, an= d prints nil: > > (let ((url-mime-accept-string "abc/def")) > (url-retrieve "http://www.gnu.org/software/emacs/" > (lambda (&rest _) > (message "url-retrieve: %S" > url-mime-accept-string)))) I tried this, and I got url-retrieve: "abc/def" so this has apparently been fixed in Emacs 27? Closing the bug. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed May 15 00:38:25 2019 Received: (at control) by debbugs.gnu.org; 15 May 2019 04:38:25 +0000 Received: from localhost ([127.0.0.1]:50714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQlgP-0006OY-Ea for submit@debbugs.gnu.org; Wed, 15 May 2019 00:38:25 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:36613) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQlgO-0006OR-De for control@debbugs.gnu.org; Wed, 15 May 2019 00:38:24 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1hQlgL-0000FS-VM for control@debbugs.gnu.org; Wed, 15 May 2019 06:38:23 +0200 Date: Wed, 15 May 2019 06:38:16 +0200 Message-Id: <87sgtgwcw7.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #23253 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 23253 From unknown Thu Aug 14 21:46:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 12 Jun 2019 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator