Я использую этот код J2ME для отправки httpRequest на серверную часть asp.net
HttpConnection connection = null;
byte responseData[] = null;
try {
connection = (HttpConnection) new ConnectionFactory()
.getConnection(URL).getConnection();
int len = (int) connection.getLength();
if (len != -1) {
responseData = new byte[len];
DataInputStream dis;
dis = new DataInputStream(connection.openInputStream());
dis.readFully(responseData);
}
} catch (Exception e) {
}
final byte[] responseDataToProcess = responseData;
, а в asp.net я использую этот код для ответа
protected void Page_Load(object sender, EventArgs e)
{
//processes
Response.Write("true");
}
Проблемаклиент не получает ответа и "len" ответа = -1
Большое спасибо