zurna
zurna

Reputation: 1191

adding custom header with classic asp

I was wondering if its possible to add custom header with classic asp. In other words, I am looking for classic asp equivalent of .net's Response.AddHeader().

i.e.
HttpContext.Response.AddHeader("customheadertruefalse","1");

Upvotes: 11

Views: 15951

Answers (2)

Edelcom
Edelcom

Reputation: 5058

Use Response.AddHeader (as JohnFx already answered). Here is sample from one of my working asp pages :

Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "attachment; filename=ranking-export.csv"

Upvotes: 16

JohnFx
JohnFx

Reputation: 34909

Don't mean to be that guy, but have you tried Response.AddHeader?

Upvotes: 4

Related Questions