I'm doing something like this -
So I'm reusing RHTTPTransaction instance. Does it mean HTTP connection will be kept alive (on phones with real TCP/IP stack)? Should I add Keep-Alive headers myself to each request? How to check from the client side weather connection is actually being kept alive, if I know that server is keep-alive capable.
/* iUri is of type TUriParser8, zero-initialized initially */
iHttpTransaction = iHttpSession.OpenTransactionL(iUri, *this);
/* loop start */
/* Fill iUri with real values here */
/* Read all data until THTTPEvent::ESucceeded or THTTPEvent::EFailed is received */
iHttpTransaction.Cancel(); /* does not work without this */
/* loop! */
P.S. Still found no way to check, even at server side, weather connection is being kept alive or not, but at least according to http://www.faqs.org/rfcs/rfc2616.html adding any headers is *not necessary* if you are using HTTP 1.1 - connections are being kept alive by default there.