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

前端 未结 9 806
广开言路
广开言路 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:19

    just write your xml or json to a string and send to server, with proper headers or without. and yes set "Content-Type" to "application/json"

提交回复
热议问题