From: "Mark A. Hershberger" <mah@everybody.org>
Cc: Emacs Development <emacs-devel@gnu.org>
Subject: Re: encoding and content-length for url-http.el
Date: Thu, 16 Jun 2005 12:05:07 -0400 [thread overview]
Message-ID: <1118937907.9088.31.camel@localhost.localdomain> (raw)
In-Reply-To: <E1DioRi-0006bF-00@etlken>
[-- Attachment #1.1: Type: text/plain, Size: 1205 bytes --]
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ñtërnâtiônàlizætiøn"))
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.
--
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
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2005-06-16 16:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-10 15:41 encoding and content-length for url-http.el Mark A. Hershberger
2005-06-10 15:53 ` Mark A. Hershberger
2005-06-10 19:47 ` Stefan Monnier
2005-06-10 17:14 ` Mark A. Hershberger
2005-06-10 21:22 ` Stefan Monnier
2005-06-16 4:21 ` Mark A. Hershberger
2005-06-16 7:05 ` Kenichi Handa
2005-06-16 16:05 ` Mark A. Hershberger [this message]
2005-06-11 11:06 ` Kenichi Handa
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1118937907.9088.31.camel@localhost.localdomain \
--to=mah@everybody.org \
--cc=emacs-devel@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.