title: Connection Response on GoDaddy Hosting (Returns 500 Internal Server Error)
body: <p>Localhost picture working when it comes in AJAX see the picture below </p>
  
  <p><a href="https://i.stack.imgur.com/AdcAj.png" rel="nofollow"><img src="https://i.stack.imgur.com/AdcAj.png" alt="Localhost"></a></p>
  
  <p>But in LIVE it returns 500 internal server error</p>
  
  <p><a href="https://i.stack.imgur.com/Fwwp0.png" rel="nofollow"><img src="https://i.stack.imgur.com/Fwwp0.png" alt="enter image description here"></a></p>
  
  <p>We're done by overriding the httpd.conf by .htaccess with </p>
  
  <pre><code>&lt;ifModule mod_headers.c&gt;
      Header set Connection keep-alive
  &lt;/ifModule&gt;
  </code></pre>
  
  <p>and by putting </p>
  
  <pre><code>header("Connection: keep-alive"); 
  </code></pre>
  
  <p>in db.php still the <code>Connection: close</code> still there.</p>
  
  <p>We used PDO connection string. And last thing if the process used INSERT INTO statement it gives the error of 500 internal server error but in SELECT and UPDATE everything works fine. Can someone give an advice to fix this problem?</p>