POSTing JSON/XML using android-async-http (loopj)

前端 未结 9 820
广开言路
广开言路 2020-12-02 07:01

I am using android-async-http and really liking it. I\'ve run into a problem with POSTing data. I have to post data to the API in the following format: -

&l         


        
9条回答
  •  星月不相逢
    2020-12-02 07:25

    If someone have a problem that httpclient send as Content-Type: text/plain, please refer this link: https://stackoverflow.com/a/26425401/361100

    The loopj httpclient is somewhat changed (or has problem) which cannot override StringEntity native Content-Type to application/json.

提交回复
热议问题