Note that there are some explanatory texts on larger screens.

plurals
  1. POhttp post method passing null values to the server
    primarykey
    data
    text
    <pre><code> try { url= new URL(ConstantsClass.VENDOR_FOLLOW + "?UID=" +android_id+"&amp;URL='"+resultfinal+"'&amp;device=android"); connection = (HttpURLConnection) url.openConnection(); connection.setDoOutput(true); connection.setRequestMethod("POST"); request = new OutputStreamWriter(connection.getOutputStream()); request.flush(); request.close(); request.write("Hello!!!"); String line = ""; InputStreamReader isr = new InputStreamReader(connection.getInputStream()); BufferedReader reader = new BufferedReader(isr); StringBuffer sb = new StringBuffer(); while((line=reader.readLine())!=null) { sb.append(line + "&amp;"); } response = sb.toString(); //response.getEntity().getContent(); Log.i("Test", "updated response: " + response); } catch (IOException e) { e.printStackTrace(); } Log.i("Test", "**************url list********************" + url); tag_text.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub Intent in=new Intent(context,LinkWebView.class); in.putExtra("vendorUrl", resultfinal); context.startActivity(in); //postData(); } }); } tag_text.setTextSize(16); return view; } </code></pre> <p>Hi i am new to android and I am trying to pass values from the url to the server but i am getting null values passed on the server side. Update response is giving null. My server side values dont give any values to me. I need to pass the url, android_id and device from the url that is given above. I tried the httpclient also but it gives me null values in that as well.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload