[erlang-bugs] http client hang (on https redirect?)

Ingela Anderton Andin <>
Thu Sep 6 17:05:33 CEST 2007


Hi!

This sounds like a bug that was fixed in inets-4.7.16.
Could you make sure you have that version, and if there is still a problem 
contact us again.

Regards Ingela - OTP team


> Dear maintainers,
> 
> When I try
> ------------
> % 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
> 
> ------------
> % 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
> 
> ------------
> % 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,




More information about the erlang-bugs mailing list