title: Am I communicating between my android app and php hosted on server correctly?
body: <p>I keep getting the following error:</p>
  
  <pre><code>W/System.err: java.io.FileNotFoundException: http://zeuspower.xyz/createCus.php
  W/System.err:     at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:186)
  W/System.err:     at com.zeuspwr.zeuspower.backgroundWorker.doInBackground(backgroundWorker.java:52)
  W/System.err:     at com.zeuspwr.zeuspower.backgroundWorker.doInBackground(backgroundWorker.java:22)
  W/System.err:     at android.os.AsyncTask$2.call(AsyncTask.java:288)
  W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
  W/System.err:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
  W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
  W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
  W/System.err:     at java.lang.Thread.run(Thread.java:841)
  </code></pre>
  
  <p>This occurs when I execute the following script:</p>
  
  <pre><code>public class backgroundWorker extends AsyncTask&lt;String,Void,String&gt;{
  
      Context context;
      AlertDialog alertDialog;
      backgroundWorker(Context ctx){
          context = ctx;
      }
  
      @Override
      protected String doInBackground(String... params) {
  
          String type = params[0];
          String createCus_url = "http://zeuspower.xyz/createCus.php";
          if(type.equals("createCustomer")){
              try {
                  String email = params[2];
                  String stripeToken = params[1];
                  URL url = new URL(createCus_url);
                  HttpURLConnection httpURLConnection = (HttpURLConnection)url.openConnection();
                  httpURLConnection.setRequestMethod("POST");
                  httpURLConnection.setDoOutput(true);
                  httpURLConnection.setDoInput(true);
                  OutputStream outputStream = httpURLConnection.getOutputStream();
                  BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8"));
                  String post_data = URLEncoder.encode("email","UTF-8")+"="+URLEncoder.encode(email,"UTF-8")+"&amp;"+
                          URLEncoder.encode("stripeToken","UTF-8")+"="+URLEncoder.encode(stripeToken,"UTF-8");
                  bufferedWriter.write(post_data);
                  bufferedWriter.flush();
                  bufferedWriter.close();
                  outputStream.close();
                  InputStream inputStream = httpURLConnection.getInputStream();
                  BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream,"iso-8859-1"));
                  String result="";
                  String line="";
                  while ((line=bufferedReader.readLine())!=null){
                      result+=line;
                  }
                  bufferedReader.close();
                  inputStream.close();
                  httpURLConnection.disconnect();
                  return result;
              } catch (MalformedURLException e) {
                  e.printStackTrace();
              } catch (IOException e) {
                  e.printStackTrace();
              }
          }
          return null;
      }
  
      @Override
      protected void onPreExecute() {
          alertDialog = new AlertDialog.Builder(context).create();
          alertDialog.setTitle("Customer ID");
      }
  
      @Override
      protected void onPostExecute(String result) {
          alertDialog.setMessage(result);
          alertDialog.show();
      }
  
      @Override
      protected void onProgressUpdate(Void... values) {
          super.onProgressUpdate(values);
      }
  }
  </code></pre>
  
  <p>I believe it occurs when it I get to the input line.  Is the input stream charset decoder correct? I don't know where to check that at.  The file is real and saved in the following location:</p>
  
  <p><a href="https://i.stack.imgur.com/oqog9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oqog9.png" alt="enter image description here"></a></p>