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

Paul Mineiro paul-trapexit@REDACTED
Thu Sep 6 18:01:13 CEST 2007


I have inets-4.7.16

---------
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:module_info ().
[{exports,[{request,1},
           {request,4},
           {cancel_request,1},
           {set_options,1},
           {verify_cookies,2},
           {cookie_header,1},
           {module_info,0},
           {module_info,1}]},
 {imports,[]},
 {attributes,[{vsn,[106656174981009331805006427346058383543]},
              {app_vsn,"inets-4.7.16"}]},
 {compile,[{options,[{d,'SERVER_SOFTWARE',"inets/4.7.16"},
                     {cwd,"/ldisk/daily_build/otp_prebuild_r11b.2007-06-11_19/otp_src_R11B-5/lib/inets/src/http_client"},
                     {outdir,"/ldisk/daily_build/otp_prebuild_r11b.2007-06-11_19/otp_src_R11B-5/lib/inets/src/http_client/../../ebin"},
                     {i,"/ldisk/daily_build/otp_prebuild_r11b.2007-06-11_19/otp_src_R11B-5/lib/inets/src/http_client/../http_lib"},
                     {i,"/ldisk/daily_build/otp_prebuild_r11b.2007-06-11_19/otp_src_R11B-5/lib/inets/src/http_client/../inets_app"},
                     {attribute,insert,app_vsn,"inets-4.7.16"},
                     {parse_transform,sys_pre_attributes},
                     debug_info]},
           {version,"4.4.5"},
           {time,{2007,6,11,17,54,41}},
           {source,"/ldisk/daily_build/otp_prebuild_r11b.2007-06-11_19/otp_src_R11B-5/lib/inets/src/http_client/http.erl"}]}]
2> http:request (get, { "http://mitch-alex.blogspot.com/", [] }, [ { timeout, 1000 } ], []).

=INFO REPORT==== 6-Sep-2007::08:58:55 ===
The inets application was not started. Has now been started as a temporary application.

BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
       (v)ersion (k)ill (D)b-tables (d)istribution
a
----------

Thanks,

-- p

On Thu, 6 Sep 2007, Ingela Anderton Andin wrote:

> 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,
>
>

Speakers of right-to-left languages use web 0.2



More information about the erlang-bugs mailing list