Android JSON HttpClient to send data to PHP server with HttpResponse

后端 未结 5 789
野性不改
野性不改 2020-11-28 23:53

I am currently trying to send some data from and Android application to a php server (both are controlled by me).

There is alot of data collected on a form in the a

5条回答
  •  广开言路
    2020-11-29 00:24

    StringEntity s = new StringEntity(c.toString());
    s.setContentEncoding("UTF-8");
    s.setContentType("application/json");
    request.setEntity(s);
    

提交回复
热议问题