Classic ASP
Classic ASP
Example: Http.GetRequestHeader method
Demonstrates theGetRequestHeader method.
Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0
set http = Server.CreateObject("Chilkat.Http")
hdr1 = "X-CSRF-Token"
hdr2 = "X-Example"
http.SetRequestHeader hdr1,"Fetch"
http.SetRequestHeader hdr2,"123ABC"
Response.Write "<pre>" & Server.HTMLEncode( hdr1 & ": " & http.GetRequestHeader(hdr1)) & "</pre>"
Response.Write "<pre>" & Server.HTMLEncode( hdr2 & ": " & http.GetRequestHeader(hdr2)) & "</pre>"
' Output:
' X-CSRF-Token: Fetch
' X-Example: 123ABC
%>
</body>
</html>