|
From: Christian P. <cp...@se...> - 2004-12-19 10:10:27
|
Am Sonntag 19 Dezember 2004 10:24 schrieb stephan beal:
> Hiya!
Hi !
>
> Here's some code from the API doc pages, slightly modified for Singleton
> changes in IOManager:
>
> // _url =3D string("http://host/")
> // buff =3D=3D (std::string &) target for buffering
> IOManager & ioman =3D IOManager::instance();
> IORequest_Get* req =3D ioman.get(URL(_url));
> req->open();
> size_t ret =3D 0;
> char cbuff[4096];
> while((ret =3D 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.)
Hmmm .. i have to investigate it further, i think it's the same issue that=
=20
causes the trouble you had with the sql module.
Sch=F6nen 4. Advent noch :-)
Gr=FC=DFe,
Christian
|