I have seen many tutorials and questions using the following method to send JSON object to PHP from Android. For example this wordpress blog, this codeproject tutorial and some answers on stackoverflow like these.
All of these tutorials and answers use HTTP header to send data(body) to PHP like this.
....
// Post the data:
httppost.setHeader("json",json.toString());
....
As a programmer we all know that headers are not meant to carry data(body). Headers should only carry metadata.
So, is there a correct way to send JSON data to PHP from Android which does not involve setting data in header?