* Problem with url-retrieve-synchronously and HTTP header
@ 2014-02-06 23:23 Christian Henz
2014-02-07 12:47 ` Aw: " Christian Henz
0 siblings, 1 reply; 2+ messages in thread
From: Christian Henz @ 2014-02-06 23:23 UTC (permalink / raw)
To: help-gnu-emacs
In emacs 23.4.1, I'm trying to access a local web service (written in Python/Flask), but "url-retrieve-synchronously" does not properly process the HTTP header returned.
When I retrieve google.com (among other sites), it works as expected:
(switch-to-buffer (url-retrieve-synchronously "http://google.com"))
HTTP/1.1 200 OK
Date: Thu, 06 Feb 2014 22:15:10 GMT
[...]
When I retrieve my local URL, the header is not parsed/cleaned correctly:
(switch-to-buffer (url-retrieve-synchronously "http://127.0.0.1:5000"))
HTTP/1.0 200 OK
Content-Type: text/plain; charset=UTF-8^M
[...]
Only the first line was "cleaned" by converting "\r\n" -> "\n". "url-http-end-of-headers" then consequently points to the "\n" after "OK".
When I dump the header using curl, it looks correct to me:
HTTP/1.0 200 OK\r\n
Content-Type: text/plain; charset=UTF-8\r\n
[...]
I also remember this working as expected on another machine with the same local service, but emacs 22...
Does anyone know what the problem might be?
Cheers,
Christian
^ permalink raw reply [flat|nested] 2+ messages in thread
* Aw: Problem with url-retrieve-synchronously and HTTP header
2014-02-06 23:23 Problem with url-retrieve-synchronously and HTTP header Christian Henz
@ 2014-02-07 12:47 ` Christian Henz
0 siblings, 0 replies; 2+ messages in thread
From: Christian Henz @ 2014-02-07 12:47 UTC (permalink / raw)
To: Christian Henz, help-gnu-emacs
This seems to be the same issue as http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13598
I have applied the change to 24.3, and now it works.
Cheers,
Christian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-07 12:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-06 23:23 Problem with url-retrieve-synchronously and HTTP header Christian Henz
2014-02-07 12:47 ` Aw: " Christian Henz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).