title: How to add authorization and content type in URL
body: <p>I am trying to make REST call to Fusion Table API . I am using spring Template for REST</p>
  
  <p>When i am defining my URL as :</p>
  
  <pre><code>String URI = "https://www.googleapis.com/upload/fusiontables/v1/tables/tableid/import";
  </code></pre>
  
  <p><strong>Exception :</strong> </p>
  
  <pre><code> Exception in thread "main" org.springframework.web.client.HttpClientErrorException: 401 Unauthorized
  </code></pre>
  
  <p>which is fine and means that its hitting google server .</p>
  
  <p>But when i use :</p>
  
  <pre><code>URL  :String URI = "https://www.googleapis.com/upload/fusiontables/v1/tables/tableid/import"+"&amp;Authorization:""&amp;Content-Type: application/octet-stream";
  </code></pre>
  
  <p>its throwing execption :</p>
  
  <pre><code>Exception in thread "main" org.springframework.web.client.HttpClientErrorException: 404 Not Found
  </code></pre>
  
  <p>Which I am not able to comprehend .</p>