title: Android volley put request not working with name value pairs
body: <p>In my application i need to post some parameters to the server by using HttpPut method. so for that i checked with the Basic Authentication technique and succeed to get the same in that way. But when i tried to implement the same with Json Volley i am unable to get the result. Every time it is throwing  the server error. </p>
  
  <p>Here is my code to pass the Basic Authentication using Asynctask::</p>
  
  <pre><code>@Override
          protected Void doInBackground( String... params )
          {
              // TODO Auto-generated method stub
  
              try
              {
                  HttpPut request = new HttpPut( params[0] );
  
                  Log.d("debug", "Posting URL" + params[0]);
  
                  String creds = String.format( "%s:%s",
                          "user123",
                          "abcd" );
  
                  String auth = "Basic " + Base64.encodeToString( creds.getBytes(),
                          Base64.NO_WRAP );
  
                  request.setHeader( "Authorization",
                          auth );
  
                  List&lt;NameValuePair&gt; urlParameters = new ArrayList&lt;NameValuePair&gt;();
                  urlParameters.add(new BasicNameValuePair("id", "409"));
                  urlParameters.add(new BasicNameValuePair("parent_id", "0"));
                  urlParameters.add(new BasicNameValuePair("content", "I am android developer"));
                  urlParameters.add(new BasicNameValuePair("email", "email@example.com"));
                  urlParameters.add(new BasicNameValuePair("username", "King Of Masses"));
  
                  request.setEntity(new UrlEncodedFormEntity(urlParameters));
  
                  DefaultHttpClient httpClient = new DefaultHttpClient();
                  HttpResponse response = httpClient.execute( request );
                  HttpEntity Entity = response.getEntity();
                  String jsondata = EntityUtils.toString( Entity );
  
                  Log.d( "debug",
                          "Response Code::  " + response.getStatusLine().getStatusCode() );
  
                  Log.d( "debug",
                          "Json Data in Asynctask:: " + jsondata );
  
                  JSONObject ljsJsonObject=new JSONObject(jsondata);
  
                  Log.d( "debug",
                          "Json Object Data:: " + ljsJsonObject.toString() );
  
              }
              catch( ClientProtocolException e )
              {
                  Log.d( "debug",
                          "Exception" + e.toString() );
                  e.printStackTrace();
              }
              catch( IOException e )
              {
  
                  Log.d( "debug",
                          "Exception" + e.toString() );
                  e.printStackTrace();
              }
              catch( Exception e )
              {
  
                  e.printStackTrace();
              }
              return null;
          } 
  </code></pre>
  
  <p>So in this above way i got the result what i expected.. but i am unable to implement the same with VolleyJson.. Can any one guide me how to achieve this.. I tried too many ways like ( getBody(), getParams()) but unfortunately nothing worked for me.. </p>
  
  <p>Any help would be highly appreciate.. Thank you </p>