Hi all !
I have a midlet that reads some bytes from google to test, it runs ok on my nokia and sony ericsson cellphones but in "Samsung GT-E2120L cellphone it doesn't work, I get "java.io.IOException TCP Open" Exception when I try to get the connection response code
HttpConnection conn = (HttpConnection) Connector.open("http://www.google.com");
// The exception throws HERE
int rc = conn.getResponseCode();
byte[] buff = new byte[255];
conn.openInputStream().read(buff);
Note: I have credit :)
Note2: I can access to google from native navigator of the "Samsung cellphone"
Note3: I had tried to Connect to the URL with 3 diferent modes: Connector.READ,Connector.WRITE, Connector.READ_WRITE
Note4: My application is not trusted but I have the "javax.microedition.io.Connector.http" API Permissions
Note5: I know that the read buffer[255] is hard coded but it's only for test
Anyone can help me? Thanks in advance and thanks for reading