I am sending info to a php file through a url. When I type the url in my browser the right information is displayed, however I do not get this information through the InputStreamReader.
Here is my code.
 try {
          URL url = new URL("http://example/example.php?userImage="
         + URLEncoder.encode(userImageString, "UTF-8") + "&userHeight="
         + URLEncoder.encode(userHeight,"UTF-8" ));
          Log.d("url", "" + url);
          Scanner in = new Scanner(new InputStreamReader(url.openStream()))
            .useDelimiter("\n");
          Log.d("hasnext?", "" + in.hasNext());
      while (in.hasNext()) 
      {
          Log.d("sent", in.next());
      }
      in.close();
    }
      catch(Exception e)
      {
          e.printStackTrace();
      }
 }
HasNext returns false, it should be returning true. Any suggestions?
I should note that the userImageString is a Base64 encoded string.
 
     
    