title: Volley-AuthFailureError
body: <p>I am trying to insert new user in phpMyAdmin database when users populate textboxes on android device. For that i write php code and I test it on POSTMAN and it's works but when i test on android real device i got AuthFailureError! In POSTMAN i set Authorization to "No Auth". 
  This is my code in android studio:</p>
  
  <pre><code>public class Registration extends AppCompatActivity {
  private EditText name,surname,email,password,adress;
      private  Button btnLog;
      private RequestQueue requestQueue;
      private  static  final String URL="http://192.168.*.*/Log/LogUser.php";
      private StringRequest request;
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_registruj_se);
          name=(EditText) findViewById(R.id.txtName);
          surname=(EditText)findViewById(R.id.txtSurname);
          email=(EditText)findViewById(R.id.txtEmail);
          password=(EditText)findViewById(R.id.txtPassword);
          adress=(EditText)findViewById(R.id.txtAdress);
         btnLog=(Button)findViewById(R.id.btnLog);
          requestQueue= Volley.newRequestQueue(this);
          btnLog.setOnClickListener(new View.OnClickListener(){
  
              @Override
              public void onClick(View v) {
                  request=new StringRequest(Request.Method.POST,URL,new Response.Listener&lt;String&gt;(){
                      @Override
                      public void onResponse(String response) {
                          try
                          {
                              JSONObject jsonObject=new JSONObject(response);
                          if(jsonObject.names().get(0).equals("success")){
                              Toast.makeText(getApplicationContext(),"success:"+jsonObject.getString("success"),Toast.LENGTH_SHORT).show();
  
                              startActivity(new Intent(getApplicationContext(),Welcome.class));
                          }else{  Toast.makeText(getApplicationContext(),"error:"+jsonObject.getString("error"),Toast.LENGTH_SHORT).show();}
  
                          }
  
                          catch (JSONException e){e.printStackTrace();}
                      }
                  },new Response.ErrorListener(){
                      @Override
                      public void onErrorResponse(VolleyError error) {
  
  
                          if (error instanceof NetworkError) {
                              Toast.makeText(getApplicationContext(),"Cannot connect to Internet...Please check your connection!",Toast.LENGTH_SHORT).show();
                          } else if (error instanceof ServerError) {
                              Toast.makeText(getApplicationContext(),"The server could not be found. Please try again after some time!!",Toast.LENGTH_SHORT).show();
  
                          } else if (error instanceof AuthFailureError) {
                              Toast.makeText(getApplicationContext(),"AuthFailureError",Toast.LENGTH_SHORT).show();
                          } else if (error instanceof ParseError) {
                              Toast.makeText(getApplicationContext(),"Parsing error! Please try again after some time!!",Toast.LENGTH_SHORT).show();
  
                          } else if (error instanceof NoConnectionError) {
                              Toast.makeText(getApplicationContext(),"NoConnectionError",Toast.LENGTH_SHORT).show();
                          } else if (error instanceof TimeoutError) {
                              Toast.makeText(getApplicationContext(),"Connection TimeOut! Please check your internet connection.",Toast.LENGTH_SHORT).show();
  
                          }
                      }
                  })
                  {
  
                     @Override
                      protected Map&lt;String, String&gt; getParams() throws AuthFailureError {
                          HashMap&lt;String,String&gt;hashMap=new HashMap&lt;String, String&gt;();
                          hashMap.put("name",name.getText().toString());
                          hashMap.put("surname",surname.getText().toString());
                          hashMap.put("email",email.getText().toString());
                          hashMap.put("password",password.getText().toString());
                          hashMap.put("adress",adress.getText().toString());
                          return  hashMap;
                      }
  
                      @Override
                      public Map&lt;String, String&gt; getHeaders() throws AuthFailureError {
                          HashMap&lt;String, String&gt; headers = new HashMap&lt;String, String&gt;();
                          // do not add anything here
                          return headers;
                      }
                      @Override
                      public String getBodyContentType() {
                          return "application/json";
                      }
  
                  };
                  requestQueue.add(request);
              }
          });
  </code></pre>
  
  <p>I appreciate any help! </p>