From: mah@everybody.org (Mark A. Hershberger)
Cc: Masatake YAMATO <jet@gyve.org>, Thien-Thi Nguyen <ttn@glug.org>,
emacs-devel@gnu.org
Subject: Re: help with URL module needed
Date: Tue, 30 Nov 2004 12:18:57 -0500 [thread overview]
Message-ID: <87wtw345mm.fsf@dev.abm.localhost> (raw)
In-Reply-To: <jept1xzt1i.fsf@sykes.suse.de> (Andreas Schwab's message of "Sun, 28 Nov 2004 20:12:57 +0100")
[-- Attachment #1.1: Type: text/plain, Size: 1554 bytes --]
Since (length url-request-data) returns characters in the string
instead of bytes, shouldn't it be (string-bytes url-request-data)
instead?
Additionally, what happens if you post using Unicode?
Does the following patch help any?
--- url-http.el 28 Nov 2004 19:13:50 -0000 1.6
+++ url-http.el 30 Nov 2004 17:16:09 -0000
@@ -259,7 +259,7 @@
(if url-request-data
(concat
"Content-length: " (number-to-string
- (length url-request-data))
+ (string-bytes url-request-data))
"\r\n"))
;; End request
"\r\n"
@@ -1060,6 +1060,9 @@
(set-process-buffer connection buffer)
(set-process-sentinel connection 'url-http-end-of-document-sentinel)
(set-process-filter connection 'url-http-generic-filter)
+ (set-process-coding-system connection
+ (detect-coding-string url-request-data t)
+ url-request-coding-system)
(process-send-string connection (url-http-create-request url))))
buffer))
--- url-vars.el 19 Oct 2004 21:37:18 -0000 1.8
+++ url-vars.el 30 Nov 2004 17:16:09 -0000
@@ -218,6 +218,8 @@
(defvar url-request-data nil "Any data to send with the next request.")
+(defvar url-request-coding-system 'binary "The coding system to use for the request.")
+
(defvar url-request-extra-headers nil
"A list of extra headers to send with the next request.
Should be an assoc list of headers/contents.")
--
A choice between one man and a shovel, or a dozen men with teaspoons
is clear to me, and I'm sure it is clear to you also.
-- Zimran Ahmed <http://www.winterspeak.com/>
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 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:[~2004-11-30 17:18 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-26 15:32 help with URL module needed Paul Pogonyshev
2004-11-26 16:04 ` Masatake YAMATO
2004-11-26 16:58 ` Paul Pogonyshev
2004-11-28 14:38 ` Paul Pogonyshev
2004-11-28 19:12 ` Andreas Schwab
2004-11-28 22:37 ` Paul Pogonyshev
2004-11-28 22:59 ` Andreas Schwab
2004-11-28 23:12 ` Paul Pogonyshev
2004-11-28 23:43 ` Alex Schroeder
2004-11-29 0:10 ` Andreas Schwab
2004-11-29 14:01 ` Paul Pogonyshev
2004-11-30 19:49 ` Paul Pogonyshev
2004-11-30 21:29 ` Andreas Schwab
2004-11-29 21:42 ` Thien-Thi Nguyen
2004-11-30 0:35 ` Andreas Schwab
2004-11-30 9:22 ` Thien-Thi Nguyen
2004-11-30 17:18 ` Mark A. Hershberger [this message]
2004-11-26 16:27 ` Thien-Thi Nguyen
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=87wtw345mm.fsf@dev.abm.localhost \
--to=mah@everybody.org \
--cc=emacs-devel@gnu.org \
--cc=jet@gyve.org \
--cc=ttn@glug.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.