application goes to infinite loop after call to HTEventList_loop. If I remove HTEventList_loop, I don’t
get anything in resp_string because (as I presume) the body hasn’t been
downloaded by the time.
I think that I need to register some callbacks and break the event
loop after the body has been downloaded. But how do I do that?