|
From: stephan b. <st...@s1...> - 2005-01-07 17:04:44
|
On Friday 07 January 2005 17:11, Christian Prochnow wrote:
> I've re-worked and added the HTTPClient class.
Woo hooo!
i see you've been busy!
> straight-forwarded. Since we have IOFilter's (you gonna love them ;-)
> and HTTPResponse being a IODevice, users are now capable of reading
> Transfer-Encoded HTTP response-bodies.
YES!!!!! That means i can get serialization of arbitrarily-sized data
working over http :). Is it possible now to send encoded data, zB, like
<textarea> field data?
> std::cerr << "Sending request ..." << std::endl;
> HTTPRequest req(HTTPRequest::GET, URL("http://192.168.1.1/"));
> req.setAcceptEncoding("deflate");
> cl.sendRequest(req);
Dude, you absolutely rock. :) i can't wait to get this into my client
code :).
> IOFilter* filter = 0;
> if(resp.header().transferEncoding() == "deflate")
> {
> filter = new ZLibIOFilter();
> resp.setFilter(filter);
> }
Is it possible (or feasible) to chain IOFilters? Just curious (i can't
think of a real use for it at the moment).
--
----- st...@s1... http://s11n.net
"...pleasure is a grace and is not obedient to the commands
of the will." -- Alan W. Watts
|