sendHttpPost(myConnection);
setStatus(JavaHttpConnection.COM_STATUS_RECEIVE);
if( isStreaming ) {
return new HttpResponse(0, myConnection.getInputStream(), null, null);
}
else {
// Receive response
String response = receiveHttpPost(myConnection);
// Return the result
return new HttpResponse(0, response, null, null);
}
} finally {
// S� podemos fechar a conex�o se j� n�o estivermos a fazer streaming...
if( !isStreaming ) {
disconnect();