Hi. All. <div>Another big issue with http client within erlang distribution and ibrowse.  That makes me start to wonder is ibrowse/http client really working?</div><div><br></div><div>Please try following url. </div><div><a href="http://www.cisworldwide.com/xweb/xweb_parser.php?premiumredirect=http%3A%2F%2Fwww.cisworldwide.com%2Fxweb%2Fpremiumsearches%2FxmlNewBackgroundSearch.php%3Fatype%3Dcaps%26fname%3Dscott%26middle_initial%3D%26lname%3Dzhang%26city%3D%26state%3D%26zip%3D%26client_reference%3Dplutux%40harbork.%26cisrestype%3Dunlimited_background&code=11111111&cemail=macromarship@gmail.com">http://www.cisworldwide.com/xweb/xweb_parser.php?premiumredirect=http%3A%2F%2Fwww.cisworldwide.com%2Fxweb%2Fpremiumsearches%2FxmlNewBackgroundSearch.php%3Fatype%3Dcaps%26fname%3Dscott%26middle_initial%3D%26lname%3Dzhang%26city%3D%26state%3D%26zip%3D%26client_reference%3Dplutux%40harbork.%26cisrestype%3Dunlimited_background&code=11111111&cemail=macromarship@gmail.com</a><br>
</div><div><br></div><div>it can be opened in firefox or IE or any browse and it returns search result of my name.</div><div><br></div><div>But whether I use http client or ibrowse, they never returns, just hang there, even I wait for 10 minutes. </div>
<div>I tried with http client/ibrowse to download <a href="http://www.google.com">www.google.com</a> or <a href="http://www.erlang.com">www.erlang.com</a>, they are working. But for this one. NO.</div><div><br></div><div>
And I tried use .NET HttpRequest to download premiumredirect=http%3A%2F%<a href="http://2Fwww.cisworldwide.com">2Fwww.cisworldwide.com</a>%2Fxweb%2Fpremiumsearches%2FxmlNewBackgroundSearch.php%3Fatype%3Dcaps%26fname%3Dscott%26middle_initial%3D%26lname%3Dzhang%26city%3D%26state%3D%26zip%3D%26client_reference%3Dplutux%40harbork.%26cisrestype%3Dunlimited_background&code=11111111&cemail=<a href="mailto:macromarship@gmail.com">macromarship@gmail.com</a></div>
<div>.NET program is working too. </div><div>So what is the problem?</div><div><br></div><div>1. http client</div><div><div>get_url(Url) -></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>case http:request(get, {Url, []}, [], []) of</div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span>{ok, {{Version, 200, ReasonPhrase}, Headers, Body}}  -></div><div><span class="Apple-tab-span" style="white-space:pre">                      </span>Body;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>_ -> sleep(500),get_url(Url)</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>end.</div><div><br></div><div><br></div></div><div>2. ibrowse</div><div>(node2@yang)18> ibrowse:send_req("<a href="http://www.cisworldwide.com/xweb/xweb_parser.php?premiumredirect=http%3A%2F%2Fwww.cisworldwide.com%2Fxweb%2Fpremiumsearches%2FxmlNewBackgroundSearch.php%3Fatype%3Dcaps%26fname%3Dscott%26middle_initial%3D%26lname%3Dzhang%26city%3D%26state%3D%26zip%3D%26client_reference%3Dplutux%40harbork.%26cisrestype%3Dunlimited_background&code=11111111&cemail=macromarship@gmail.com">http://www.cisworldwide.com/xweb/xweb_parser.php?premiumredirect=http%3A%2F%2Fwww.cisworldwide.com%2Fxweb%2Fpremiumsearches%2FxmlNewBackgroundSearch.php%3Fatype%3Dcaps%26fname%3Dscott%26middle_initial%3D%26lname%3Dzhang%26city%3D%26state%3D%26zip%3D%26client_reference%3Dplutux%40harbork.%26cisrestype%3Dunlimited_background&code=11111111&cemail=macromarship@gmail.com</a>",[],get)<br>
</div><div><br></div><div>Both of http client and ibrowse are hung there. </div><div><br></div><div>Thanks.</div><div>Regards.</div><div>Scott</div><div>Zhang</div><div><br><div class="gmail_quote">On Wed, Feb 18, 2009 at 12:42 AM, Yang Zhang <span dir="ltr"><<a href="mailto:getyourcontacts@gmail.com">getyourcontacts@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><p>Hi. Kenneth.</p><p>No mean to offend. </p><p>I am glad you team provided so great erlang/OTP distribution. Just checked some  old erlang-questions discussions. Someone was talking about the difference between ibrowse and http client in distribution. He said sometime the default http client won't work with some servers but ibrowse can work. </p>

<p>And based on my observation, ibrowse seems integrated a builtin loadbancer. Actually I didn't care this much. Use default http client or ibrowse is same to me. Just want to have a different try. BTW, if default http client is good enough, why these guys were trying to creating ibrowse?</p>

<p>If default http client can let me bind IP when I initial the http request, that will be perfect. </p><p></p><p>Thanks.</p><p>Regards.</p><p>Scott Zhang ( I should change my name. :) )</p><div><div></div><div class="Wj3C7c">
<br><div class="gmail_quote">On Wed, Feb 18, 2009 at 12:33 AM, Kenneth Lundin <span dir="ltr"><<a href="mailto:kenneth.lundin@gmail.com" target="_blank">kenneth.lundin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Yang,<br>
<br>
What do you mean with better http client library?<br>
Is it the http client included in the Erlang/OTP distribution you are<br>
referring to?<br>
In that case what problems have you had with that one?<br>
or what functions are you missing?<br>
<br>
I know that there are weaknesses in it but the functionality is more<br>
or less the same as Ibrowse but with a<br>
different API.<br>
<br>
It would be interesting to hear you opinion so we can improve.<br>
<br>
/Kenneth Erlang/OTP , Ericsson<br>
<div><br>
2009/2/17 Yang Zhang <<a href="mailto:getyourcontacts@gmail.com" target="_blank">getyourcontacts@gmail.com</a>>:<br>
</div><div><div>> Hi. All.<br>
><br>
> I am trying to find a better httpclient library of Erlang.<br>
><br>
> So I am trying ibrowse. But I got a compile error.<br>
><br>
> make[3]: Entering directory `/home/scott/erlang/jungerl/lib/ucs/priv'<br>
> erl -noshell -pa ../ebin -s ucs rebuild_database mibenum -s init stop<br>
> ERROR: {undef,[{httpd_util,to_lower,["ANSI_X3.4-1968"]},<br>
>   {ucs_data_build,scan_name_line,1},<br>
>   {ucs_data_build,process_mibenum_data_file,1},<br>
>   {ucs_data_build,mibenum,1},<br>
>   {ucs_data,rebuild_database,2},<br>
>   {init,start_it,1},<br>
>   {init,start_em,1}]}make[3]: Leaving directory<br>
> `/home/scott/erlang/jungerl/lib/ucs/priv'<br>
> make[2]: Leaving directory `/home/scott/erlang/jungerl/lib/ucs'<br>
><br>
> any idea?<br>
><br>
> thanks.<br>
><br>
> Regards.<br>
><br>
> Scott<br>
><br>
</div></div><div><div>> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
> <a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br></div>