From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mark A. Hershberger" Newsgroups: gmane.emacs.devel Subject: Re: encoding and content-length for url-http.el Date: Thu, 16 Jun 2005 12:05:07 -0400 Message-ID: <1118937907.9088.31.camel@localhost.localdomain> References: <1118418076.8854.41.camel@localhost.localdomain> <87u0k69fhn.fsf-monnier+emacs@gnu.org> <1118423681.8854.58.camel@localhost.localdomain> <87is0lap4t.fsf-monnier+emacs@gnu.org> <1118895704.7936.19.camel@localhost.localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2109462618==" X-Trace: sea.gmane.org 1118937828 14734 80.91.229.2 (16 Jun 2005 16:03:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Jun 2005 16:03:48 +0000 (UTC) Cc: Emacs Development Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 16 18:03:43 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DiwoW-0007nR-PR for ged-emacs-devel@m.gmane.org; Thu, 16 Jun 2005 18:01:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Diwty-0001M5-0S for ged-emacs-devel@m.gmane.org; Thu, 16 Jun 2005 12:07:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Diwto-0001LR-8s for emacs-devel@gnu.org; Thu, 16 Jun 2005 12:07:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Diwtl-0001Kh-KJ for emacs-devel@gnu.org; Thu, 16 Jun 2005 12:07:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Diwtl-0001Jj-DL for emacs-devel@gnu.org; Thu, 16 Jun 2005 12:07:21 -0400 Original-Received: from [64.124.179.97] (helo=superman.everybody.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1Diwth-0003WX-3r for emacs-devel@gnu.org; Thu, 16 Jun 2005 12:07:17 -0400 Original-Received: from 66.216.169.50.static.dejazzd.com ([66.216.169.50] helo=[192.168.1.20]) by superman.everybody.org with esmtpsa (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.50) id 1Diwrq-0008Fl-4A; Thu, 16 Jun 2005 11:05:27 -0500 Original-To: Kenichi Handa In-Reply-To: X-Mailer: Evolution 2.3.3 X-SA-Exim-Connect-IP: 66.216.169.50 X-SA-Exim-Mail-From: mah@everybody.org X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100) X-SA-Exim-Scanned: Yes (on superman.everybody.org) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38964 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38964 --===============2109462618== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-MLrD45nNJQYqD8zh5FnD" --=-MLrD45nNJQYqD8zh5FnD Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 2005-06-16 at 16:05 +0900, Kenichi Handa wrote: > What I still don't know is what value url-request-data > should have? It would be ideal if url.el would add charset information to the Content-Type MIME header. This way url.el can ensure that the information it always correct and it saves the caller some work. In fact I think there needs to be more convenience methods available to abstract away a lot of the character-encoding and MIME handing. I would suggest simplifying the interface to: (setq my-resp (url-http-post "http://www.example.com/" "I=C3=B1t=C3=ABrn=C3=A2ti=C3=B4n=C3=A0liz=C3=A6ti=C3=B8n")) And let url.el handle all the character encoding (probably, trying utf-8 first and falling back if the server's Accept-Encoding doesn't have utf-8 in it) and result parsing. Is this reasonable? I'm willing to help code something like this up as long as I can get help from people more knowledgeable than myself in the encoding. --=20 http://mah.everybody.org/weblog/ GPG Fingerprint: 7E15 362D A32C DFAB E4D2 B37A 735E F10A 2DFC BFF5 More people are killed every year by pigs than by sharks, which shows you how good we are at evaluating risk. -- Bruce Schneier --=-MLrD45nNJQYqD8zh5FnD Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBCsaMzc17xCi38v/URAogoAKClxf1A14zYZQFmYHwfJ7JLo7NunwCeIvKJ EQGahjwNL4e13wNJIaeiT0s= =Qb3k -----END PGP SIGNATURE----- --=-MLrD45nNJQYqD8zh5FnD-- --===============2109462618== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============2109462618==--