|
From: stephan b. <st...@s1...> - 2004-12-19 09:26:08
|
Hiya!
Here's some code from the API doc pages, slightly modified for Singleton
changes in IOManager:
// _url = string("http://host/")
// buff == (std::string &) target for buffering
IOManager & ioman = IOManager::instance();
IORequest_Get* req = ioman.get(URL(_url));
req->open();
size_t ret = 0;
char cbuff[4096];
while((ret = req->receive(cbuff,sizeof(cbuff))) > 0)
{
buff.append( cbuff, cbuff + ret );
}
ioman.finish(req);
For me this is always throwing 'No handler for protocol found' for http
URLs. Do i need to explicitely register an http handler?
i remember this example did work for me from the 1.0b1 tree. (Currently
using CVS copy.)
--
----- st...@s1... http://s11n.net
"...pleasure is a grace and is not obedient to the commands
of the will." -- Alan W. Watts
|