> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# addHttpHeader

<div className="kinetica-doxygen">
  <div id="a949cbb204510e4011233952fb00dc7f3" />

  <h2 className="memtitle"><span className="permalink"><a href="#a949cbb204510e4011233952fb00dc7f3">◆ </a></span>addHttpHeader()</h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname">void gpudb::GPUdb::addHttpHeader </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">header</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">value</span></span> )</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Adds an HTTP header to the map of additional HTTP headers to send to <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb">GPUdb</a> with each request. </p>
      <p>If the header is already in the map, its value is replaced with the specified value. The user is not allowed to modify the following headers: </p>

      <ul>
        <li> Authorization </li>
        <li> Content-type </li>
        <li> Content-length </li>
        <li> ha\_sync\_mode </li>
      </ul>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">header</td>
              <td>the HTTP header </td>
            </tr>

            <tr>
              <td className="paramname">value</td>
              <td>the value of the HTTP header</td>
            </tr>
          </table>
        </div>
      </div>

      <p>See <code><a className="el" href="#a9a05888d893e2ca984609b1a836ae5ba">getHttpHeaders()</a></code> See <code><a className="el" href="#a04da24e61fee753e76aea8519c2ddb0c">removeHttpHeader(const std::string&)</a></code> </p>
    </div>
  </div>
</div>
