From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: mah@everybody.org (Mark A. Hershberger) Newsgroups: gmane.emacs.devel Subject: Re: help with URL module needed Date: Tue, 30 Nov 2004 12:18:57 -0500 Message-ID: <87wtw345mm.fsf@dev.abm.localhost> References: <200411261732.12616.pogonyshev@gmx.net> <20041127.010441.112625752.jet@gyve.org> <200411261858.20645.pogonyshev@gmx.net> <200411281638.02083.pogonyshev@gmx.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0457155286==" X-Trace: sea.gmane.org 1101835175 19061 80.91.229.6 (30 Nov 2004 17:19:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Nov 2004 17:19:35 +0000 (UTC) Cc: Masatake YAMATO , Thien-Thi Nguyen , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 30 18:19:28 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CZBex-0003uG-00 for ; Tue, 30 Nov 2004 18:19:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CZBoP-0000wJ-RD for ged-emacs-devel@m.gmane.org; Tue, 30 Nov 2004 12:29:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CZBoB-0000uS-NG for emacs-devel@gnu.org; Tue, 30 Nov 2004 12:28:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CZBoA-0000tz-QJ for emacs-devel@gnu.org; Tue, 30 Nov 2004 12:28:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CZBoA-0000tu-Kx for emacs-devel@gnu.org; Tue, 30 Nov 2004 12:28:58 -0500 Original-Received: from [64.124.179.97] (helo=superman.everybody.org) by monty-python.gnu.org with esmtp (TLSv1:RC4-SHA:128) (Exim 4.34) id 1CZBef-0003w5-R6 for emacs-devel@gnu.org; Tue, 30 Nov 2004 12:19:09 -0500 Original-Received: from [66.216.169.50] (helo=dev.abm.localhost) by superman.everybody.org with asmtp (Exim 4.34) id 1CZBec-0002we-5Z; Tue, 30 Nov 2004 11:19:06 -0600 Original-To: Andreas Schwab X-URL: http://mah.everybody.org/weblog/ In-Reply-To: (Andreas Schwab's message of "Sun, 28 Nov 2004 20:12:57 +0100") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) 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: main.gmane.org gmane.emacs.devel:30543 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30543 --===============0457155286== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= 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 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBrKuKc17xCi38v/URAuOyAJ45wa2G6fnmBkgopNGTLzAYT91YuACgt6h8 SEJe6U6Pgmri5MAI7FD4gjo= =pJRm -----END PGP SIGNATURE----- --=-=-=-- --===============0457155286== 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 --===============0457155286==--