title: how to change post['Content-Type'] in angularjs
body: <p>i want to change  post['Content-Type']  in angularjs so i use </p>
  
  <pre><code>  app.config(function($locationProvider,$httpProvider) {
  $locationProvider.html5Mode(false);
  $httpProvider.defaults.useXDomain = true;
  delete $httpProvider.defaults.headers.common['X-Requested-With'];
  $httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;        charset=UTF-8';
   });
  </code></pre>
  
  <p>and the event is </p>
  
  <pre><code>     $http.post("http://172.22.71.107:8888/ajax/login",{admin_name:user.u_name,admin_password:user.cert})
          .success(function(arg_result){
  
              console.log(arg_result);
  
  
          });
  };
  </code></pre>
  
  <p>however the rusult is </p>
  
  <pre><code>Parametersapplication/x-www-form-urlencoded
  {"admin_name":"dd"} 
  </code></pre>
  
  <p>what i want is </p>
  
  <pre><code>Parametersapplication/x-www-form-urlencoded
   admin_name dd
  </code></pre>
  
  <p>so what i should do?</p>