title: Send data from android to website but no result returned
body: <p>I am totally new in java and android.. I am sure I did it wrong on the code, please help me fix it</p>
  
  <p>I try to send the content of a tweet as a String from an android application to this online parser: <a href="http://demo.ark.cs.cmu.edu/parse" rel="nofollow noreferrer">http://demo.ark.cs.cmu.edu/parse</a>, and I want to retrieve the result of the parsing, here is my code:</p>
  
  <pre><code>@Override 
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.test);
          String Tobetag = urlEncode(contentTweet);
          new Analyser().execute();
          }
  
  
      private String urlEncode(String s){
                        try {
                          return URLEncoder.encode(s,"UTF-8").replace("+", "%20");
                        }
                       catch (  UnsupportedEncodingException e) {
                          throw new RuntimeException(s,e);
                        }
                      }
  
          private class Analyser extends AsyncTask&lt;Integer, Integer, Integer&gt;
                  {
                      private String mUrl = "http://demo.ark.cs.cmu.edu/parse?sentence=";
  
                  @Override
                  protected Integer doInBackground(Integer... params) {
                      // TODO Auto-generated method stub
  
  
                      try 
                      {
                          DefaultHttpClient client = new DefaultHttpClient();
  
                          HttpGet request = new HttpGet();
                          request.setURI(new URI(mUrl + mTobetag));
                          HttpResponse response = client.execute(request);
                          InputStream in = response.getEntity().getContent();
                          BufferedReader reader = new BufferedReader( new InputStreamReader(in) );
                          String result = reader.readLine();
                          System.out.println("Top");
                          System.out.println(result);
                          System.out.println("Bottom");
  
                          in.close();
                      }
                      catch(Exception e)
                      {
                          Log.e("Twitter", "doInBackground_" + e.toString());
                          }
                      return new Integer(1);
                  }
  
  
                  protected void onProgressUpdate(Integer... progress) {
                      }
  
                  @Override
                  protected void onPostExecute(Integer i) {
  
                      }
  
                  }
  </code></pre>
  
  <p>I ran the code, no error reported but I didn't get the parse result, I only have this:</p>
  
  <p><img src="https://i.stack.imgur.com/5MA55.png" alt="enter image description here"></p>
  
  <p>What can I do to get the result I wanted?</p>
  
  <p>P.S. Also I am not sure I used the urlencoder right, it turn the slashes of the tweet content into %2F, but when I use the online parser by a browser, it shows that it doesn't change the slashed at all, please help</p>