|
-
Keep-Alive Connections with HTTPURLConnections
Has anyone tred Keep-Alive connections using the HTTPUrlConnection class?
It seems that in order to set the header values, the URLConnection object
*must* be in the disconnected state, otherwise you will get an IllegalStateException.
So, it appears that the only way to use Keep-Alive connections is without
the ability to reset the values of the header fields. This is kind of useless,
as you may always want to update certain headers, like Date, Cookies, and
others.
Am I missing something?
Adolfo
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks