title: Specifically add browser to POST request in Node.js
body: <p>I have a proxy endpoint in a Node.js service that is forwarding POST requests as follows:</p>
  
  <pre><code>request.post(
      fullURL,
      { form: req.body },
      function (error, response, body) {
          if (response){
              res.status(response.statusCode).send(body);
          }
          else {
              res.status(500).send("ERROR");
          }
      }
  );
  </code></pre>
  
  <p>And this is forwarding to a Spring Boot service that is attempting to extract the browser info via:</p>
  
  <pre><code>String browser = request.getHeader("User-Agent");
  </code></pre>
  
  <p>But this is always empty when being forwarded through the proxy. <em>So how can I specifically set User-Agent in the request?</em></p>
  
  <p><strong>NOTE:</strong> req.headers['user-agent'] from the original incoming request is all present and correct, and ready to be injected into forwarding POST request</p>