1

Can we tell if HTTP headers are already sent to the browser, in classic ASP?

In PHP, we can use headers_sent() for this.

Using IIS7

DarkWingDuck
  • 2,028
  • 1
  • 22
  • 30
  • I'm sad that nobody has really answered this question after all this time. I'd like to be able to test if any headers have been sent, before, y'know, sending some headers – Stephen R Jul 15 '20 at 16:11

2 Answers2

0

Have you checked out the Request or Response Objects? That's the only thing I can think of that would show the header information.

http://www.w3schools.com/asp/asp_ref_request.asp

Robert
  • 3,074
  • 3
  • 24
  • 32
-1

use this example/tutorial:

http://www.w3schools.com/asp/coll_servervariables.asp

ALL_HTTP -- Returns all HTTP headers sent by the client. Always prefixed with HTTP_ and capitalized

Response.Write(Request.ServerVariables ("ALL_HTTP"))

Dee
  • 1,432
  • 1
  • 9
  • 8