title: org.apache.http.client.ClientProtocolException appears when HttpClient executes
body: <p>I want to send to server some data via POST-request. My code:</p>
  
  <pre><code>protected Void doInBackground(Void... arg)
          {       
              HttpClient httpclient = new DefaultHttpClient();
              HttpPost post = new HttpPost("https://money.yandex.ru/oauth/authorize");
  
              post.addHeader("Host", "m.sp-money.yandex.ru");
              post.addHeader("Content-Type", "application/x-www-form-urlencoded");
              post.addHeader("Content-Length", "154");
  
              //data back from server
              String responseBackFromServer = "";
  
              try 
              {
                  List&lt;NameValuePair&gt; pairs = new ArrayList&lt;NameValuePair&gt;();
                  pairs.add(new BasicNameValuePair("client_id", "51"));
                  pairs.add(new BasicNameValuePair("response_type", "code"));
                  pairs.add(new BasicNameValuePair("redirect_uri", "https://vk.com/"));
                  pairs.add(new BasicNameValuePair("scope", "account-info"));
  
                  post.setEntity(new UrlEncodedFormEntity(pairs));
                  HttpResponse server_response = httpclient.execute(post);//!!!exception is appearing here!!!
  
                  responseBackFromServer = EntityUtils.toString(server_response.getEntity());
  
              }
              catch (ClientProtocolException e) 
              {
                  e.printStackTrace();
                  Log.d(LOG_TAG, "" + e);
              }
  }
  </code></pre>
  
  <p>But on "HttpResponse server_response = httpclient.execute(post);" string ClientProtocolException appears. How can I fix it?</p>