[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug#23750 disable sending latin-1 or utf-8 body
From: |
Knut Olav Bøhmer |
Subject: |
Bug#23750 disable sending latin-1 or utf-8 body |
Date: |
Mon, 12 Jun 2017 21:04:39 +0200 |
In url-http.el there is a function url-http-create-request with the
following check:
;; Bug#23750
(unless (= (string-bytes request)
(length request))
(error "Multibyte text in HTTP request: %s" request))
(url-http-debug "Request is: \n%s" request)
It makes it impossible to send utf-8 or latin-1 strings in the body.
I need it for some requests by soap-client.
Would be nice If we could have an extra variable to allow latin-1 strings.
For example url-http-allow-multibyte-body or
url-http-prevent-multibyte-request, or something like that.
then do
(unless (and url-http-prevent-multibyte-request (= (string-bytes
request)
(length request)))
(error "Multibyte text in HTTP request: %s" request))
Or maybe the solution is something else. But it should be possible to send
latin-1 strings with "æøå" in it.
regards
--
Knut Olav Bøhmer
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug#23750 disable sending latin-1 or utf-8 body,
Knut Olav Bøhmer <=