Index: lisp/url/url-http.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/url/url-http.el,v retrieving revision 1.14 diff -u -r1.14 url-http.el --- lisp/url/url-http.el 4 Jun 2005 18:37:16 -0000 1.14 +++ lisp/url/url-http.el 10 Jun 2005 18:45:05 -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" @@ -1066,6 +1066,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)) Index: lisp/url/url-vars.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/url/url-vars.el,v retrieving revision 1.9 diff -u -r1.9 url-vars.el --- lisp/url/url-vars.el 9 Feb 2005 15:50:36 -0000 1.9 +++ lisp/url/url-vars.el 10 Jun 2005 18:45:05 -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.")