Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.4 KiB

  1. <%@ LANGUAGE = PerlScript%>
  2. <HTML>
  3. <HEAD><TITLE>Response Object</TITLE></HEAD>
  4. <!--
  5. Copyright (c) 1996, Microsoft Corporation. All rights reserved.
  6. Developed by ActiveState Internet Corp., http://www.ActiveState.com
  7. -->
  8. <BODY> <BODY BGCOLOR=#FFFFFF>
  9. <!--
  10. ActiveState PerlScript sample
  11. PerlScript: The coolest way to program custom web solutions.
  12. -->
  13. <!-- Masthead -->
  14. <TABLE CELLPADDING=3 BORDER=0 CELLSPACING=0>
  15. <TR VALIGN=TOP ><TD WIDTH=400>
  16. <A NAME="TOP"><IMG SRC="PSBWlogo.gif" WIDTH=400 HEIGHT=48 ALT="ActiveState PerlScript" BORDER=0></A><P>
  17. </TD></TR></TABLE>
  18. <H3>Response Object</H3><P>
  19. There are many ways to get information sent to a browser.<P>
  20. <OL>
  21. <LI>You can use HTML!</LI>
  22. <LI>You can use <%="expressions" %>.</LI>
  23. <LI>You can use <% $Response->write("the Response object");%>.</LI>
  24. </OL>
  25. <!-- +++++++++++++++++++++++++++++++++++++
  26. here is the standard showsource link -
  27. Note that PerlScript must be the default language --><hr>
  28. <%
  29. $url = $Request->ServerVariables('PATH_INFO')->item;
  30. $_ = $Request->ServerVariables('PATH_TRANSLATED')->item;
  31. s/[\/\\](\w*\.asp\Z)//m;
  32. $params = 'filename='."$1".'&URL='."$url";
  33. $params =~ s#([^a-zA-Z0-9&_.:%/-\\]{1})#uc '%' . unpack('H2', $1)#eg;
  34. %>
  35. <A HREF="index.htm"> Return </A>
  36. <A HREF="showsource.asp?<%=$params%>">
  37. <h4><i>view the source</i></h4></A>
  38. </BODY>
  39. </HTML>