title: Classic ASP - Request object Is Empty
body: <p>I'm working on adding a feature to an old classic asp site and ran into an interesting problem.  The following line on the page results in the helpful error "Object required:'' " </p>
  
  <pre><code>strServerName = Request.ServerVariables("server_name")
  </code></pre>
  
  <p>When I attached a debugger to look at it, Request is in fact Empty, which I don't understand how that can happen?  This line exists on several pages and executes with no problems besides this one.  In this case, the page is executed by a Redirect from another page.</p>
  
  <p>I've been searching for a solution for a day or so now and haven't been able to locate anything that's been helpful.  I'm desperate, any ideas would be greatly appreciated.</p>
  
  <p>Oh, and if any more information is required, please don't hesitate to call me out.  </p>
  
  <p>Thanks!</p>
  
  <p><strong>Update 1</strong><br>
  As requested, below is the entire code snippet wrapped in &lt;% %> tags.  This block exists as first code within the file (named 'order-results-instant.asp'):</p>
  
  <pre><code>&lt;%
  strServerName = Request.ServerVariables("server_name")
  strServerName = UCase(strServerName)
  
  strServerURL = "http://localhost/cbr"
  strServerURLhttps = "https://localhost/cbr"
  strConnect = "Provider=SQLOLEDB;Data Source=localhost;Initial Catalog=CBR; Integrated Security=SSPI"
  
  Dim objConn
  Dim sql_stmt
  Dim rs  
  %&gt;
  </code></pre>
  
  <p><strong>Update 2</strong><br>
  I've used the following 2 methods to redirect execution to this page - perhaps this can cause the request to be lost?</p>
  
  <pre><code> 'Response.Redirect strServerURL &amp; "/order-results-instant.asp?gwstep=1"
   Response.Write "&lt;META HTTP-EQUIV=""refresh"" content=""5;URL=" &amp; strServerURL &amp; "/order-results-instant.asp?gwstep=1""&gt;"
  </code></pre>