[erlang-questions] ibrowse compile error
Scott Zhang
getyourcontacts@REDACTED
Wed Feb 18 07:59:18 CET 2009
Hi. All. Another big issue with http client within erlang distribution and
ibrowse. That makes me start to wonder is ibrowse/http client really
working?
Please try following url.
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
it can be opened in firefox or IE or any browse and it returns search result
of my name.
But whether I use http client or ibrowse, they never returns, just hang
there, even I wait for 10 minutes.
I tried with http client/ibrowse to download www.google.com or
www.erlang.com, they are working. But for this one. NO.
And I tried use .NET HttpRequest to download 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@REDACTED
.NET program is working too.
So what is the problem?
1. http client
get_url(Url) ->
case http:request(get, {Url, []}, [], []) of
{ok, {{Version, 200, ReasonPhrase}, Headers, Body}} ->
Body;
_ -> sleep(500),get_url(Url)
end.
2. ibrowse
(node2@REDACTED)18> ibrowse:send_req("
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
",[],get)
Both of http client and ibrowse are hung there.
Thanks.
Regards.
Scott
Zhang
On Wed, Feb 18, 2009 at 12:42 AM, Yang Zhang <getyourcontacts@REDACTED>wrote:
> Hi. Kenneth.
>
> No mean to offend.
>
> 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.
>
> 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?
>
> If default http client can let me bind IP when I initial the http request,
> that will be perfect.
>
> Thanks.
>
> Regards.
>
> Scott Zhang ( I should change my name. :) )
>
> On Wed, Feb 18, 2009 at 12:33 AM, Kenneth Lundin <kenneth.lundin@REDACTED
> > wrote:
>
>> Hi Yang,
>>
>> What do you mean with better http client library?
>> Is it the http client included in the Erlang/OTP distribution you are
>> referring to?
>> In that case what problems have you had with that one?
>> or what functions are you missing?
>>
>> I know that there are weaknesses in it but the functionality is more
>> or less the same as Ibrowse but with a
>> different API.
>>
>> It would be interesting to hear you opinion so we can improve.
>>
>> /Kenneth Erlang/OTP , Ericsson
>>
>> 2009/2/17 Yang Zhang <getyourcontacts@REDACTED>:
>> > Hi. All.
>> >
>> > I am trying to find a better httpclient library of Erlang.
>> >
>> > So I am trying ibrowse. But I got a compile error.
>> >
>> > make[3]: Entering directory `/home/scott/erlang/jungerl/lib/ucs/priv'
>> > erl -noshell -pa ../ebin -s ucs rebuild_database mibenum -s init stop
>> > ERROR: {undef,[{httpd_util,to_lower,["ANSI_X3.4-1968"]},
>> > {ucs_data_build,scan_name_line,1},
>> > {ucs_data_build,process_mibenum_data_file,1},
>> > {ucs_data_build,mibenum,1},
>> > {ucs_data,rebuild_database,2},
>> > {init,start_it,1},
>> > {init,start_em,1}]}make[3]: Leaving directory
>> > `/home/scott/erlang/jungerl/lib/ucs/priv'
>> > make[2]: Leaving directory `/home/scott/erlang/jungerl/lib/ucs'
>> >
>> > any idea?
>> >
>> > thanks.
>> >
>> > Regards.
>> >
>> > Scott
>> >
>> > _______________________________________________
>> > erlang-questions mailing list
>> > erlang-questions@REDACTED
>> > http://www.erlang.org/mailman/listinfo/erlang-questions
>> >
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090218/ae6103bc/attachment.htm>
More information about the erlang-questions
mailing list