1

Send JSON from Java to PHP through Post

view story
linux-howto

http://stackoverflow.com – I am doing an Android program that is supposed to send data from the tablet to a PHP Web Service. The code for sending the JSON: package com.example.shvalidation; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.StringEntity; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.message.BasicHeader; import org.apache.http.protocol.HTTP; import (HowTos)