Actually I tried on 2 server one in China and one in US. Both of them are not working. <div><br></div><div>And more, I have to use wireshark to track the package for this http session.  I saw when I was using firefox and .NET program to get this url. I saw the correct GET + many many continueous and at end, it get an Response Code 200. Then everything is fine.</div>
<div><br></div><div>When I am using http client and ibrowse, I saw the correct GET + many many continueous </div><div>30821<span class="Apple-tab-span" style="white-space:pre">     </span>2503.516971<span class="Apple-tab-span" style="white-space:pre"> </span>67.55.101.167<span class="Apple-tab-span" style="white-space:pre">       </span>192.168.1.101<span class="Apple-tab-span" style="white-space:pre">       </span>TCP<span class="Apple-tab-span" style="white-space:pre"> </span>[TCP segment of a reassembled PDU]<br>
</div><div><br></div><div>then </div><div>sometimes, I never saw the Response Code 200. Sometimes, I saw the response Code 200 but the erlang program is still blinking there?</div><div><br></div><div>I have another question, is there a possibility erlang's low level TCP implement has flaw to make it unable to detect tcp shutdown or keepalive? If not why http client and ibrowse can't run correct? </div>
<div><br></div><div><br></div><div>Regards.</div><div>Scott</div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Wed, Feb 18, 2009 at 3:58 PM, Scott 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;">Hi. <span style="color:rgb(136, 136, 136)">Nicolas.</span><div><span style="color:rgb(136, 136, 136)">Please check my attachment.</span></div>
<div><span style="color:rgb(136, 136, 136)"><br>
</span></div><div><span style="color:rgb(136, 136, 136)">I did exactly what you told. It is still not working. I'm glad if I can get a no proc error instead a endless blinking.</span></div><div>
<span style="color:rgb(136, 136, 136)"><br></span></div><div><span style="color:rgb(136, 136, 136)">Regards.</span></div><div><span style="color:rgb(136, 136, 136)">Scott</span></div><div><div></div><div class="Wj3C7c">
<div><br><div class="gmail_quote">On Wed, Feb 18, 2009 at 3:34 PM, Nicolas Charpentier <span dir="ltr"><<a href="mailto:nc-dated-1240126482.4ea222@charpi.net" target="_blank">nc-dated-1240126482.4ea222@charpi.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Scott Zhang wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
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?<br>
<br></div>
Please try following url. <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" target="_blank">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> ...<div>

<br>
But whether I use http client or ibrowse, they never returns, just hang there, even I wait for 10 minutes. <br>
</div></blockquote>
> ...<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
1. http client<br>
get_url(Url) -><br>
case http:request(get, {Url, []}, [], []) of<br>
{ok, {{Version, 200, ReasonPhrase}, Headers, Body}}  -><br>
Body;<br>
_ -> sleep(500),get_url(Url)<br>
end.<br>
</blockquote>
<br></div>
It tried inets http client with your url and it works for me.<br>
Looking at your code, there is an infinite loop if the response isn't ok (and response code 2000). Did you tried just this ?<br>
<br>
1> inets:start().<br>
2> Url = "your long url".<br>
3> http:request(get, {Url, []}, [], []).<br>
<br>
<br>
The inets application must be started before the request otherwise you'll get an noproc error (I thing that it's your case).<br>
<br>
<br>
Regards,<br>
-----<br><font color="#888888">
Nicolas Charpentier<br>
<a href="http://charpi.net" target="_blank">http://charpi.net</a><br>
</font></blockquote></div><br></div>
</div></div></blockquote></div><br></div>