I've been noticing that I'm receiving Keep-Alive headers from a server I'm 
trying to access.  I was looking for any built-in methods that will tell me the 
status of this header flag and the closest thing I could find was 
"HttpMethodBase.shouldCloseConnection()", but that's protected.  Is there a 
specific reason this isn't given a "public" scope?  
I would like to be able to tell if a connection should be kept alive or not 
(without manually having to look for the header, etc) so that I don't 
explicitly close it via a "releaseConnection()" when I've completed executing 
the http call.  To the best of my knowledge a call to "releaseConnection()" 
will cause the connection to close without regard of any Keep-Alive header 
values - please correct me if this understanding is wrong.
 
 
John M. Corro
www.cornerstone.net
Cornerstone Consulting, Inc
731 N. Jackson Street, Suite 600 
Milwaukee, WI 53202
(414) 212-3500

Reply via email to