Problema com a midlet ao conectar!
url="http://www.xxxx.com.br/teste.html"
ou “http://www.xxxx.com.br/teste.asp”
Faço o seguinte:
HttpConnection http = null;
try{
http = (HttpConnection) Connector.open(url);
http.setRequestMethod(HttpConnection.GET);
if (http.getResponseCode() == HttpConnection.HTTP_OK){
pego as info de resposta....
}else{
[b][i][u]System.out.Println("PAU =>"+http.getResponseCode())[/u][/i][/b] }
}catch(){}
[color=“darkred”]Porem o http.getResponseCode() esta sendo igual a HTTP_INTERNAL_ERROR.[/color]
:?: O pq deste erro? Alguma dica de solução?
OBS: esta midlet estou rodando no ceclular, onde tenho uma acesso grps configurado ok.
:arrow: qdo rodo no emulador, conectando a uma string tipo http://localhost:8080/teste/teste.jsp funciona, pois tenho o retorno da pagina teste.jsp.
