|
List Info
Thread: Re: http client hang (on https redirect?)
|
|
| Re: http client hang (on https
redirect?) |
  Sweden |
2007-09-06 10:05:33 |
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-al
ex.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-al
ex.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-al
ex.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/blog
in.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="htt
ps://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,
_______________________________________________
erlang-bugs mailing list
erlang-bugs erlang.org
ht
tp://www.erlang.org/mailman/listinfo/erlang-bugs
|
|
| Re: http client hang (on https
redirect?) |

|
2007-09-06 11:01:13 |
I have inets-4.7.16
---------
pmineiro doorbigfast-2% 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_1
9/otp_src_R11B-5/lib/inets/src/http_client"},
{outdir,"/ldisk/daily_build/otp_prebuild_r11b.2007-06-1
1_19/otp_src_R11B-5/lib/inets/src/http_client/../../ebin&quo
t;},
{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-1
1_19/otp_src_R11B-5/lib/inets/src/http_client/http.erl"
}]}]
2> http:request (get, { "http://mitch-al
ex.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-al
ex.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-al
ex.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-al
ex.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/blog
in.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="htt
ps://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
_______________________________________________
erlang-bugs mailing list
erlang-bugs erlang.org
ht
tp://www.erlang.org/mailman/listinfo/erlang-bugs
|
|
| Re: http client hang (on https
redirect?) |
  Sweden |
2007-09-07 06:22:16 |
Ok, then we will have to investigate.
I have a problem recreating the situation as the link
seems to be
redirected
to a https link, and I have no direct Internet access and
alas https
through a proxy
is not supported as yet by the client. (The reason is that
ssl has not
had the necessary API functions to implement it. It will
soon though.)
Well anyway could you do:
http:set_options([{verbose, trace}]).
**http:request (get, { "http://mitch-al
ex.blogspot.com/", [] }, [ {
timeout, 1000 } ], []).
And then send us the result.
Regards Ingela - OTP team
Paul Mineiro wrote:
> I have inets-4.7.16
>
> ---------
> pmineiro doorbigfast-2% 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&
quot;},
>
{cwd,"/ldisk/daily_build/otp_prebuild_r11b.2007-06-11_1
9/otp_src_R11B-5/lib/inets/src/http_client"},
>
{outdir,"/ldisk/daily_build/otp_prebuild_r11b.2007-06-1
1_19/otp_src_R11B-5/lib/inets/src/http_client/../../ebin&quo
t;},
>
{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-1
1_19/otp_src_R11B-5/lib/inets/src/http_client/http.erl"
}]}]
> 2> http:request (get, { "http://mitch-al
ex.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-al
ex.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-al
ex.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-al
ex.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/blog
in.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="htt
ps://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
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs erlang.org
> ht
tp://www.erlang.org/mailman/listinfo/erlang-bugs
>
>
_______________________________________________
erlang-bugs mailing list
erlang-bugs erlang.org
ht
tp://www.erlang.org/mailman/listinfo/erlang-bugs
|
|
[1-3]
|
|