title: How to print HttpRequest headers in angular
body: <p>I am new to angular so here is the situation: There is a back-end application which is sending some header information to the front end application which is on Angular 5, so i need to fetch those header information at my landing page.
  I am using interceptors here is the code </p>
  
  <pre><code>  intercept(req: HttpRequest&lt;any&gt;, next: HttpHandler): Observable&lt;HttpEvent&lt;any&gt;&gt; {
  
      console.log('Before sending data');
       console.log('Request : ', req);
       console.log('Headers are');
       console.log('USER: ' + req.headers.get('USER'));
  </code></pre>
  
  <p>Please suggest any solution.
  Thanks in advance.</p>