litesuits / android-lite-http

LiteHttp is a simple, intelligent and flexible HTTP framework for Android. With LiteHttp you can make HTTP request with only one line of code! It could convert a java model to the parameter and rander the response JSON as a java model intelligently.
http://litesuits.com?form=ghttp
Apache License 2.0
830 stars 347 forks source link

用Http.delete传输json数据时传不过去 #11

Closed tianci closed 9 years ago

tianci commented 9 years ago

同样的json数据, 用Http.post和put服务端都可以正常收到数据,用delete不行。 用Charles抓包,发现确实没有带上json数据

litesuits commented 9 years ago

http delete 属于url携带参数的请求方式,参数只会拼接到url上,不像put post patch一样需要http body传送参数。