Re: How to properly reuse an <code>HttpConnection</code>?
Posted By:
Jack_Lai
Posted On:
Thursday, November 21, 2002 06:04 PM
I think you can set the head of HttpConnection,just like this
HttpConnection conn = (HttpConnection) Connector.open( url ) ;
conn.setRequestProperty("Connection","open");
After do that , you can make your HttpConnection "Keep Active" is a short time .And you should set the field "Content-Length" a correct value , else error will happen.
Maybe it can help you something . Good Luck!