[erlang-bugs] http client hang (on https redirect?)
Paul Mineiro
paul-trapexit@REDACTED
Mon Sep 3 22:12:30 CEST 2007
Dear maintainers,
When I try
------------
pmineiro@REDACTED% erl
Erlang (BEAM) emulator version 5.5.5 [source] [async-threads:0]
[kernel-poll:false]
Eshell V5.5.5 (abort with ^G)
1> http:request ("http://mitch-alex.blogspot.com/").
=INFO REPORT==== 3-Sep-2007::13:00:25 ===
The inets application was not started. Has now been started as a temporary
application.
------------
it just hangs there. If I set a timeout this does not help
------------
pmineiro@REDACTED% erl ~
Erlang (BEAM) emulator version 5.5.5 [source] [async-threads:0] [kernel-poll:false]
Eshell V5.5.5 (abort with ^G)
1> http:request (get, { "http://mitch-alex.blogspot.com/", [] }, [ { timeout, 1000 } ], []).
=INFO REPORT==== 3-Sep-2007::13:02:54 ===
The inets application was not started. Has now been started as a temporary application.
------------
I also tried setting a Connection: close header but that didn't help
either.
------------
Eshell V5.5.5 (abort with ^G)
1> http:request (get, { "http://mitch-alex.blogspot.com/", [ { "connection", "close" } ] }, [ { timeout, 1000 } ], []).
=INFO REPORT==== 3-Sep-2007::13:06:20 ===
The inets application was not started. Has now been started as a temporary application.
------------
Using telnet the page is being redirected to an https: url
------------
pmineiro@REDACTED% telnet mitch-alex.blogspot.com 80 ~
Trying 72.14.207.191...
Connected to blogspot.l.google.com.
Escape character is '^]'.
GET / HTTP/1.1
Host: mitch-alex.blogspot.com
Connection: close
HTTP/1.1 302 Moved Temporarily
Location: https://www.blogger.com/blogin.g?blogspotURL=http%3A%2F%2Fmitch-alex.blogspot.com%2F
Content-Type: text/html; charset=UTF-8
Cache-control: private
Content-Length: 266
Date: Mon, 03 Sep 2007 20:05:43 GMT
Server: GFE/1.3
<HTML>
<HEAD>
<TITLE>Moved Temporarily</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Moved Temporarily</H1>
The document has moved <A HREF="https://www.blogger.com/blogin.g?blogspotURL=http%3A%2F%2Fmitch-alex.blogspot.com%2F">here</A>.
</BODY>
</HTML>
Connection closed by foreign host.
-------------
I don't know if that is the reason for the difficulty.
Thanks,
-- p
More information about the erlang-bugs
mailing list