If you're on Windows, you definitely want to take a look at this thread.
This worked for me.
http://lists.w3.org/Archives/Public/www-lib/2001AprJun/0051.html
- Joost
> -----Original Message-----
> From: www-lib-request@w3.org [mailto:www-lib-request@w3.org]On Behalf Of
> Graeme Zubko
> Sent: vrijdag 1 maart 2002 14:33
> To: www-lib@w3.org
> Subject: connecting to an unknown url using HTLoadToChunk()
>
>
> Hi there
>
> Whenever I try to connect to an unkown url using the
> HTLoadToChunk function,
> the function loops infinitely, apparently within HTDoConnect().
> This problem
> has been posted before a few years ago but I cannot find any
> replies. I am
> experiencing the same problem and would like to know how I can get around
> this problem.
>
> The previous post had set HTHost_setEventTimeout() but this did not work
>
> for details see
>
> http://lists.w3.org/Archives/Public/www-lib/1999JulSep/0998.html
>
> Thanks
>
> Graeme Zubko
>
>
>