Hi to all,
as you will have read in the last message, i have had a problem with connection http on 6680 and 6630..
Finally I'm successful to find one solution ....:-))
The response of get request did not come read from the 6680 and 6630 while for the others yes.this problem has been found from many other developers.
After a lot of tests they are successful to read GET with the 6680 ....
1) In the new Nokia Phone when the byte flow is read is it is NECESSARY to make it with one mask the aim to extract the correct byte :
Ex.:
byte flow[] = new byte[((int)len)];
int n = is.read(flow, 0, flow.length);
for (int i = 0; i < n; i++) {
ch = flow[i] & 0x000000ff;
b.append((char)ch);
}
where
len = connection.getLength(), the size of data
2)
Attention ! also LEN must be masked
In this way all the characters correctly are read !
According to mine , the problem was the lack of the mask!
Attention to another problem of N70, the redirect (code 302)...but for this enough to use one script of redirect through Locations'http_headers..
Hi to all,
Nicola Palmieri
Integra Solutions Napoli - K4m

Reply With Quote



