Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] HttpGet não retorna o conteúdo correto

Quando eu utilizo o poster ele me retorna o conteúdo correto. Isso que estou achando estranho. Quando vou para o android ai retorna algo como uma pagina de redirecionamento, mas ai não redireciona.

On Oct 24, 2013 4:15 PM, "Pedro Subutzki &lt;Pepeu&gt;" <falecompepeu@gmail.com> wrote:
Então é problema do lado do servidor.
Fazendo a chamado pelo browser retornar o que?

Qualquer coisa faz o monitoramento dos requests com o Fiddler: http://fiddler2.com/



Abraços,
Pedro Subutzki
__________________________________________
HADI - Makes SQLite in Android easy and simple
https://github.com/PepeuCps/Hadi


Em 24 de outubro de 2013 15:58, Diego Lopes Marques da Silva <diego.lopes@dce.ufpb.br> escreveu:
Pedro,

Aconteceu o mesmo problema!


Em 24 de outubro de 2013 14:13, Pedro Subutzki <Pepeu> <falecompepeu@gmail.com> escreveu:


Abraços,
Pedro Subutzki
__________________________________________
HADI - Makes SQLite in Android easy and simple
https://github.com/PepeuCps/Hadi


2013/10/24 Diego Lopes Marques da Silva <diego.lopes@dce.ufpb.br>
Pessoal,

Estou fazendo um Get e ele não me retorna o conteúdo correto.
O que eu recebo de retorno é um algo como:
Conectando ao Serviço...

Seria possível fazer algo como uma espera até que seja redirecionada para a próxima pagina ou estou enganado?

public static String getHistorico(Aluno a){
        String res= null;
        HttpClient httpClient = new DefaultHttpClient();
        HttpGet httpGet = new HttpGet(Constants.URL_HISTORICO+"?ctrl="+a.getCtrl()+"&sess=&opcao=6");

        try {
            ResponseHandler<String> responseHandler = new BasicResponseHandler();
            res= httpClient.execute(httpGet, responseHandler);       
            Log.d("Http Response:", res);

        } catch (ClientProtocolException e) {
            // writing exception to log
            e.printStackTrace();
        } catch (IOException e) {
            // writing exception to log
            e.printStackTrace();

        }
        return res;
    }







--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário