9

Getting/Setting request property in HTTP request Android

view full story
linux-howto

http://stackoverflow.com – I am setting some key value pair at client side in android, how can i get it at server side. code: FileInputStream fileInputStream = new FileInputStream(sourceFile); URL url = new URL(upLoadServerUri); // Open a HTTP connection to the URL HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setDoInput(true); // Allow Inputs conn.setDoOutput(true); // Allow Outputs conn.setUseCaches(false); // Don't use a Cached Copy conn.setRequestMethod("POST"); (HowTos)