<html>
<head>
<title>Response IuWFNg</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">Response IuWFNg</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">







<p>Request IuWFNggpƃNCAguEU HTTP vőM擾đł̂Ɠ悤ɁAResponse IuWFNggpƃNCAgւ HTTP L͈͂ɐł܂B̐̎ȃJeS͎ 3 łB<!--<primary>Response object</primary>-->
<!--<primary>HTTP
(Hypertext Transfer
Protocol)</primary><secondary>responses</secondary>-->
<!--<primary>responses, HTTP</primary>--></p>




<ul><dd><p>HTTP ̃wb_ŁAǂ̃f[^уf[^^CvNCAgɑM邩̐</p></dd><dd><p>HTTP ̖{ŁAǂ̃f[^уf[^^CvNCAgɑM邩̐</p></dd><dd><p>	f[^ǂ̂悤ɑM邩̐</p></dd></ul>
<p><!--<primary>headers,
HTTP</primary><secondary>responses</secondary>-->
<!--<primary>responses,
HTTP</primary><secondary>headers</secondary>-->
<!--<primary>HTTP (Hypertext Transfer
Protocol)</primary><secondary>responses</secondary><tertiary>headers</tertiary>-->HTTP wb_ł̐ɂ́ANCAgRs[^ւ Cookie ̐ݒAHTTP wb_l̊̂܂܂Ȓl (w肳ꂽy[W̃Rec^CvLȂ) ̐ݒA HTTP ւ̃JX^wb_̒ǉ܂܂܂B</p>




<p>HTTP ̖{́AWrite  BinaryWrite \bhʂĒڐ䂵܂BO琄ł悤ɁAResponse IuWFNĝ̃\bhgpƁA̖{ɒڏނƂłANCAg HTTP v̉Ŏ󂯎鑼̏Ɠ悤ɏ󂯎邱Ƃł܂B</p>




<p>ŌɁAResponse IuWFNgł́ANCAgɂǂ̂悤ȕ@ŉ𑗐M邩𐧌ł܂BƂ΁Ãobt@OɊ֘AvpeBƃ\bhgpƁAHTTP  1 ̒PʂƂăNCAgɑM邩Aʂ̗vƂɌʂ𑗐M邩wł܂B܂ANCAg Web TCgɐڑĂ邩ǂ𓮓Iɒׂ邱Ƃł܂BNCAg̗v́ANCAgʂ̗vŝ悤Ƀ_CNgł܂BɁAResponse IuWFNggp Web T[o[OɃGgނƂł܂B</p>




<!--
<p class="TITLE">Response Object Summary</p>




<dl>
<dt>Properties</dt>
<dd><p>Buffer</p>






<p>CacheControl</p>




<p>Charset</p>




<p>ContentType</p>




<p>Expires</p>




<p>ExpiresAbsolute</p>




<p>IsClientConnected</p>




<p>PICS</p>




<p>Status</p>
</dd>





<dt>Collections</dt>
<dd><p>Cookies</p></dd>




<dt>Methods</dt>
<dd><p>AddHeader</p>






<p>AppendToLog</p>




<p>BinaryWrite</p>




<p>Clear</p>




<p>End</p>




<p>Flush</p>




<p>Redirect</p>




<p>Write</p>
</dd>





<dt>Events</dt>
<dd><p>None</p></dd>

</dl>



-->
</td></tr>
</table>
</div>
<div id="Buffer">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
Buffer</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">Response.Buffer[=</span><var class="replaceable">blnSetting</var><span class="LITERAL">]</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>Buffer property
(Response)</primary>--> <!--<primary>Response
object</primary><secondary>properties
reference</secondary>--> <!--<primary>web
pages</primary><secondary>buffering downloads</secondary>-->
<!--<primary>responses,
HTTP</primary><secondary>buffering</secondary>--> <!--<primary>HTTP (Hypertext
Transfer
Protocol)</primary><secondary>responses</secondary><tertiary>buffering</tertiary>-->Buffer vpeBł́AXNvgō쐬ꂽRec̑ŜNCAguEUɑM̂Aes쐬 HTML Xg[ɓ͂邽тɂɃNCAguEUɑM̂wł܂B<span class="LITERAL">True</span> ɐݒ肵ꍇAy[ŴׂẴXNvǵÃXNvǧʂNCAguEUɑMOɎs܂B</p>




<p>Buffer vpeB̏ݒĺAWindows Scripting Host XNvg܂ Web TCg Microsoft ǗR\[ (Microsoft Management Console) ʂă^x[X <span class="LITERAL">ASPBufferingOn</span><!--<primary>ASPBufferingOn
setting</primary>--> ݒ肵ȂA<span class="LITERAL">False</span> ɂȂ܂B^x[XŒlݒ肳ꂽꍇA̒l̓y[W Buffer vpeBgpď㏑ł܂BƂ΁A<span class="LITERAL">ASPBufferingOn</span>  <span class="LITERAL">True</span> ɐݒ肵ꍇA Buffer vpeBgpĂ̓㏑AIIS y[Wobt@OȂ悤ɂł܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<dl>
<dt><var class="replaceable">blnSetting</var></dt>
<dd><p>Web T[o[ɂXNvg̏ɂĔ HTTP Aobt@OĂNCAgɑM邩A쐬ɃNCAgɑM邩w肵܂B</p></dd>




<dt><span class="LITERAL">True</span></dt>
<dd><p>ׂĂ̏܂ŁA܂ Response IuWFNg Flush ܂ End \bhĂяo܂ŁAXNvĝׂĂ̌ʂobt@O悤 Web T[o[Ɏw܂Bobt@O <span class="LITERAL">True</span> ɐݒ肳ĂꍇłAEnd \bhĂяoƁAobt@̃RecNCAgɑMAXNvg̏ł̂ȍ~ׂ̂Ă̌ʂ̓NCAgɑM܂B<em></em></p></dd>




<dt><span class="LITERAL">False</span></dt>
<dd><p>ׂĂ̏܂ő҂̂ł͂ȂAXNvg̏ɁANCAgɏ𑗐M悤 Web T[o[Ɏw܂Bobt@O <span class="LITERAL">False</span> ɐݒ肳ĂꍇɁAResponse IuWFNg ClearAEndA܂ Flush \bhĂяoƁA^CG[܂B</p></dd>

</dl>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>ɗ܂BResponse IuWFNg Buffer vpeB𖾎Iɐݒ肵ĂȂ̂ŁÃvpeB <span class="LITERAL">False</span> łB</p>




<span class="PROGRAMLISTING"><pre>&lt;%@ LANGUAGE="VBScript" %&gt;
&lt;HTML&gt;

&lt;%
CODE THAT RETRIEVES A FIELD VALUE FROM A DATABASE
%&gt;</pre></span>




<p><!--<primary>errors</primary><secondary>response buffers
and</secondary>-->͗ṽuEUɑM܂Ńobt@O܂B̂߁AOq̃f[^x[XANVŃG[ꍇ́ArŃG[ʒmŏIy[W[U[ɕ\܂BāA2 Ԗڂ̃R[hl܂B</p>




<span class="PROGRAMLISTING"><pre>&lt;%@ LANGUAGE="VBScript" %&gt;
&lt;%Response.Buffer = True %&gt;
&lt;HTML&gt;

&lt;%
On Error Resume Next
' CODE THAT RETRIEVES A FIELD VALUE FROM A DATABASE
If Err.Number &lt;&gt; 0 Then
   Response.Clear
   Response.Write "There has been an error. Here is the SQL"
   Response.Write "statement that caused the problem: "
   Response.Write strSQL
   Response.End
End If
%&gt;</pre></span>




<p> 2 Ԗڂ̗ł́Aŏɉobt@OĊɁAṽuEUɑM܂B̂߁Aobt@NAAOq̃obt@OȂ̏񋟂AȒPȃG[ʒmzuł܂B̃R[hł͑̑s܂񂪁Ałł傤B</p>




<p>obt@OȂꍇAʂG[ɂȂꍇłĂANCAg͗vɑ΂ HTTP 쐬ꂽƂɂ̉󂯎܂B</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>oĂKvŏ̎́AHTTP ɑ΂ <span class="LITERAL">&lt;HTML&gt;</span> ^Oݒ肷OɁABuffer vpeBݒ肷KvƂƂłB<span class="LITERAL">&lt;HTML&gt;</span> ^Ǒ Buffer vpeBݒ肵悤ƂƁA^CG[܂B</p>




<p>Ƃ΁Ay[W̌ݒ肷OfBNeBu܂܂ĂꍇÃfBNeBúABuffer vpeB̒lݒ肵悤ƂOɔzuKv܂B<em></em>Buffer vpeB̒lݒ肵Ƀy[W̌ݒ肵悤ƂƁAG[܂B</p>




<p>Buffer vpeB <span class="LITERAL">True</span> ɐݒ肳AXNvg <!--<primary>Flush
method</primary><secondary>Response
object</secondary><tertiary>Response.Buffer property
and</tertiary>-->Flush \bh̏ꏊłĂяoȂꍇAWeb T[o[̓NCAgM <!--<primary>Keep-Alive header, buffering response
content</primary>-->
<!--<primary>expiring</primary><secondary>response
buffering</secondary>-->Keep-Alive vgp܂BuEU Keep-Alive v́ANCAgƂ̐ڑێ悤ɃT[o[ɓ`܂BNCAg Keep-Alive vT[o[ŎgpꂽꍇAHTTP vsтɐڑ̍Ċm͋܂Bۂɂ́AɐڑsĂ܂B̂߂ɁANCAg͂x URL ȂĂς݂܂B</p>




<p>Buffer vpeB <span class="LITERAL">False</span> ɐݒ肳Ă邩AXNvĝǂ Flush \bhgpꍇAT[o[͊evɉăNCAgւ̐Vڑ쐬邱Ƃ܂B</p>




<p>XNvg͂obt@Oŝł傤B̎̓́A 2 ̗vfɊÂČ܂܂B܂ANCAgɂƂĒҋ@Ԃ͂ǂꂭ炢Ȃ̂AуXNvgǂꂭ炢GȂ̂ƂƂłB</p>




<p>NCAgC^[lbg̏Ix[U[łꍇAʏA[U[ełҋ@Ԃ͒ZȂ܂BNCAg̏ꍇ́AtH[ [Submit] {^NbNĂ炷ɃANVKv܂Bô郆[U[́AC^[lbgAvP[ṼobNGhɊւ闝AXNvǧʂŒxĂeIłƍl܂B</p>




<p>ɏdvȂ̂́A 1 ̒PʂƂĒ񋟂邱ƂǂꂾdvƂƂłB̔sAe[vÕ[vɂĒډe󂯂XNvgł́AŏIIȌʂ 1 ̒PʂƂĒ񋟂邱ƂdvłBAXNvg̒`\ZNVō\ꍇAeXNvg͒PƂŊȒPɕ\ł̂ŁAobt@Ȍdv͌邱Ƃ܂B</p>




<p>1 ̒PʂŌʂ߂镡GȃXNvgł̒xԂɑΉ 1 ̕@́A
<!--<primary sortas="please wait pages">please wait
pages</primary>--> <!--<primary>web
pages</primary><secondary sortas="please wait pages">please wait
pages</secondary>-->炩̃tH[ "҂" y[Wgp邱ƂłB̒ԃy[WɂAv󂯎AXNvgł邱Ƃ[U[ɓ`邱Ƃł܂B</p>




<p>Ƃ΁ANCAguEUAǂݍݎ (Ƃ 30 b) KvƂɕGȃNG[f[^擾уtH[}bg ASP XNvgvƂ܂BNCAgNNbNĂ 30 bԉȂ悤ɂ̂ł͂ȂAŏɎ̂悤ȃy[W\܂BԉȂꍇAo̐ Web [U[́AN{^JԂNbN\܂B</p>




<span class="PROGRAMLISTING"><pre>&lt;HTML&gt;
&lt;HEAD&gt;&lt;TITLE&gt;Please Wait&lt;/TITLE&gt;&lt;/HEAD&gt;
&lt;BODY LANGUAGE = "VBScript" OnLoad = "WinLoad( )"&gt;
Your request is being processed, please wait...
&lt;SCRIPT LANGUAGE = "VBScript"&gt;
Sub WinLoad( )
   Parent.Location.HREF = "/Reports/Longreport.asp"
End Sub
&lt;/SCRIPT&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;</pre></span>




<p>̒Zy[W̓ǂݍ݂ɂ͂قƂǎԂ͂܂Bǂݍ݂ƁÃXNvgA|[g\ł悤ɂȂ܂łɁA"҂" bZ[W[U[ɕ\܂B|[g\ł悤ɂȂƁA"҂" bZ[WA[hA|[gǂݍ܂܂B</p>




<p>ŌɁAXNvg̑啔Ńobt@OKvȏꍇ́AzfBNg [AvP[VIvV\] y[WgpāA^x[X <span class="LITERAL">ASPBufferingOn</span> ݒ肵 (<link linkend="appd-1-fm2xml">t^ D</link> Q)AׂẴXNvgftHgŃobt@O悤ɂ邱ƂĂB    </p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="CacheControl">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
CacheControl</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">Response.CacheControl[=</span><var class="replaceable">ProxyCacheControlSetting</var><span class="LITERAL">]</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>CacheControl property
(Response)</primary>--> <!--<primary>caching web
pages</primary>--> <!--<primary>web
pages</primary><secondary>caching</secondary>-->
<!--<primary>proxy servers, caching web pages
and</primary>--> <!--<primary>web
servers</primary><secondary>caching web
pages</secondary>-->CacheControl gpƁAy[WɑΉvLVT[o[y[WLbVł邩ǂݒł܂By[W̃Rec傫ApɂɕύXȂꍇ́AvLVT[o[ɂy[W̃LbVA荂ɗṽNCAguEUɑΉ邱ƂĂB</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<dl>
<dt><var class="replaceable">ProxyCacheControlSetting</var></dt>
<dd><p>Web TCg̃ANZXɎgpvLVT[o[y[WLbVł邩ǂw肵܂B̃vpeB̏ݒl <span class="LITERAL">Private</span> łA̓vLVT[o[y[WLbVłȂƂ܂B̒l <span class="LITERAL">Public</span> ̏ꍇAvLVT[o[̓y[WLbVł܂B<span class="LITERAL">Private</span>  <span class="LITERAL">Public</span> ͕lłB</p></dd>

</dl>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>̃R[hɎ悤ɁÃvpeBݒ肷̂͊ȒPłBŁANCAgvLVT[o[oR Web y[WɃANZXĂ邩ǂmF@ȂlƂ܂Bgp\̂vLVT[o[݂̑OɔFĂꍇA̕@݂͑܂A܂ł̂ŏώGɂȂ܂BɁÃvpeBݒ肷Oɂ́ÂƂmFKv܂BNCAgvvLVT[o[ɂďẴvpeBy[W̃LbVɉe邩A܂͂̃vpeB͊Sɖ܂B</p>




<span class="PROGRAMLISTING"><pre>&lt;% 

' The following code sets the HTTP cache control header so 
' that this page can be cached by the proxy servers being 
' used to access the page.
Response.CacheControl = "Public"
%&gt;
&lt;HTML&gt;
&lt;%
' Note that the CacheControl property was set BEFORE the 
' &lt;HTML&gt; tag was constructed.
%&gt;</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>vLVT[o[y[WLbVłꍇAvLVT[o[ʂẴy[WɃNCAgANZX܂ł̎Ԃ͖炩ɒZȂ܂BAy[WpɂɕύXꍇA̕@̗֐͒ቺ܂B܂ACacheControl vpeB̒l <span class="LITERAL">Public</span> ɐݒ肵ł́Ay[W̃LbVɃvLVT[o[͕Kv܂B̓vLVT[o[Őݒ肷Kv܂B</p>




<p>CacheControl ̒lݒ肷ƁAvɃNCAgɑM HTTP wb_̃LbV̒lς܂B</p>




<p>̃vpeBgpKvꍇ́ANCAgɉ𑗐MO (y[W <span class="LITERAL">&lt;HTML&gt;</span> ^OO) ɎgpKv܂B<em></em><span class="LITERAL">&lt;HTML&gt;</span> ^OɃNCAgɑMĂ炱̃vpeB܂͑ HTTP wb_̒lݒ肵悤ƂƁAobt@OȂAG[܂B</p>




<p>̃vpeBݒ肵ĂAvLVT[o[ŃLbVsƂ͌܂B̃vpeBLɂȂ邽߂ɂ́AvLVT[o[̂̂Ãy[WLbV悤ɐݒ肳Kv܂B</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="Charset">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
Charset</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">Response.Charset(</span><var class="replaceable">strCharsetName</var><span class="LITERAL">)</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>Charset property</primary><secondary>Response
object</secondary>--> <!--<primary>HTTP (Hypertext
Transfer
Protocol)</primary><secondary>responses</secondary><tertiary>character
sets for</tertiary>--> <!--<primary>responses,
HTTP</primary><secondary>characters sets for</secondary>-->
<!--<primary>character sets for HTTP
responses</primary>--> <!--<primary>Content-Type
header</primary>-->Charset gpƁAHTTP Rec̕Zbgwł܂B̕Zbg̖ÓAHTTP wb_ Content-Type  "wb_/l" ̃yA̍Ōɒǉ܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<dl>
<dt><var class="replaceable">strCharsetName</var></dt>
<dd><p><var class="replaceable">strCharsetName</var> ͕ZbgɑΉ镶łBZbg̏ݒl ISO-LATIN-1 łB</p></dd>

</dl>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Charset vpeBݒ肵ȂꍇAContent-Type HTTP wb_͎̂悤ɂȂ܂B</p>




<span class="PROGRAMLISTING"><pre>content-type:text/html</pre></span>




<p>̃R[hŝ悤 Charset vpeBݒ肷Ƃ܂B</p>




<span class="PROGRAMLISTING"><pre>&lt;%
Response.Charset("ISO-LATIN-7")
%&gt;</pre></span>




<p>Charset vpeBl̐ݒɎgpl (Oq̃R[hł͕ "ISO-LATIN-7") ́AContent-Type HTTP wb_l̍Ōɒǉ܂B</p>




<span class="PROGRAMLISTING"><pre>content-type:text/html;charset=ISO-LATIN-7</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Charset ͖{}jA Microsoft ̃}jA̗ŃvpeBƂĐĂ܂Aۂɂ́Ap[^󂯎郁\bhłAContent-Type HTTP wb_̍Ōɒǉ镶Zbg̖O\܂B̂߁AResponse IuWFNg̑̃vpeB̂悤 Charset "vpeB" ̒lݒ肵悤ƂƁÂ悤ȃG[܂B</p>




<span class="PROGRAMLISTING"><pre>&lt;%
' Next line will NOT work:
Response.Charset = "ISO-LATIN-7"
%&gt;</pre></span>




<p>Charset vpeBɑ΂Đݒ肷lLȕZbg\ȂꍇA̒l̓NCAguEUɂĖAɃftHg̕Zbggp܂B</p>




<p>Content-Type  "wb_/l" ̃yA̍Ōɂ́A1 ̕Zbg̖Ô݂ǉł܂Bȍ~́ACharset vpeB̒lύX邽тɍŌ̐ݒ肪u܂B̃R[hɎ܂B</p>




<span class="PROGRAMLISTING"><pre>&lt;%
Response.Charset("ISO-LATIN-7")
Response.Charset("ISO-LATIN-3")
%&gt;</pre></span>




<p>̃R[hł́A Content-Type HTTP  "wb_/l" ̃yA܂B</p>




<span class="PROGRAMLISTING"><pre>content-type:text/html;charset=ISO-LATIN-3</pre></span>




<p>Rec^CvSɃeLXgȊO (C[Wf[^Ȃ) ̏ꍇAZbgl̓uEUɂĖ܂B</p>




<p>ŌɁAApple Macintosh ƌ݊@̃ftHg̕ZbǵAIBM PC ƌ݊@Ƃ͈قȂAISO-LATIN-1 ł͂܂BCharset vpeBݒ肵ȂꍇAׂĂ 
<!--<primary>Macintosh character
sets</primary>-->Macintosh uEÚAvꂽy[W Macintosh ZbggpĂƉ߂܂BMicrosoft  Personal Web Server for Macintosh ł́AvꂽRec̕ZbgI ISO-LATIN-1 ɐݒ肳AXNvgŒ`鑼 Charset vpeBݒ͖܂B</p>




<p>HTTP wb_l̕ύXƂȂ鑼̃vpeBƓ悤ɁAobt@OꍇAT[o[ <span class="LITERAL">&lt;HTML&gt;</span> ^ONCAgɑMO Charset vpeBݒ肷Kv܂B</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="ContentType">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
ContentType</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">Response.ContentType[=</span><var class="replaceable">strContentType</var><span class="LITERAL">]</span> 
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>ContentType property
(Response)</primary>-->ContentType gpƁAHTTP wb_ Content-Type ݒwł܂B̒lɂAResponse ̖{őMf[^^Cv`܂BNCAguEU͂̏gpāA_E[hꂽ HTTP Rec̉ߕ@𔻒f܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<dl>
<dt><var class="replaceable">strContentType</var></dt>
<dd><p>Rec^Cv\܂B̕ "^Cv/Tu^Cv" tH[}bgłBl̃^Cv͈ʓIȃRecJeS\ATu^Cv̓Rec̓̃^Cv\܂B</p></dd>

</dl>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<span class="PROGRAMLISTING"><pre>&lt;% 

' The following code sets the value of the Content-Type
' HTTP response header according to the value of a
' local variable.
If strData = "jpg" Then
   Response.ContentType = "image/JPEG"
Else
   Response.ContentType = "text/plain"
End If

%&gt;</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>ContentType  "^Cv/Tu^Cv" ̃yAŎgpłl̈ꕔA<link linkend="ch08-34245">\ 8.1</link> Ɏ܂B</p>




<table id="ch08-34245" label="8.1">

<p class="TITLE">p\ Content-Type HTTP wb_̒l</p>







<thead>
<tr valign="top">
<td>
<p>^Cv</p></td>
<td>
<p>Tu^Cv</p></td>
<td>
<p></p></td>
</tr>



</thead>



<tbody>
<tr valign="top">
<td>
<p>Text</p></td>
<td>
<p>PlainARichText</p></td>
<td>
<p>eLXg`̏</p></td>
</tr>



<tr valign="top">
<td>
<p>Multipart</p></td>
<td>
<p>MixedAAlternativeAParallelADigest</p></td>
<td>
<p>Ɨf[^̕ō\ꂽÃf[^</p></td>
</tr>



<tr valign="top">
<td>
<p>Message</p></td>
<td>
<p>PartialAExternal-body</p></td>
<td>
<p>JvZꂽbZ[W</p></td>
</tr>



<tr valign="top">
<td>
<p>C[W</p></td>
<td>
<p>JPEGAGIF</p></td>
<td>
<p>C[Wf[^</p></td>
</tr>



<tr valign="top">
<td>
<p>Audio</p></td>
<td>
<p>Basic</p></td>
<td>
<p>I[fBIf[^</p></td>
</tr>



<tr valign="top">
<td>
<p>Video</p></td>
<td>
<p>MPEG</p></td>
<td>
<p>rfIf[^</p></td>
</tr>



<tr valign="top">
<td>
<p>Application</p></td>
<td>
<p>ODAAPostScriptAActive</p></td>
<td>
<p>ʏ́A߂̃oCif[^A܂̓[x[XAvP[Vɂďf[^</p></td>
</tr>



</tbody>

</table>




<p>Tu^Cv̐́AԂ̌o߂ƋɒƑz肳܂BpłTu^Cv̍œKȎQƐ́AŐV MIME RFC ({}jA쐬_ł RFC 2231) łB̐VTu^CveЂɂč쐬錩݂łBƂ΁AMicrosoft  Channel Definition Format ̃AvP[V^CvƂĊ <span class="LITERAL">x-cdf</span> Tu^CvǉĂ܂B</p>




<p>HTTP wb_l̕ύXƂȂ鑼̃vpeBƓ悤ɁAobt@OꍇAT[o[ <span class="LITERAL">&lt;HTML&gt;</span> ^ONCAgɑMO ContentType vpeBݒ肷Kv܂B</p>




<p>ContentType vpeB̕ʂ̗ɂẮA{͂ŌqAResponse IuWFNg BinaryWrite \bh̃TvR[hQƂĂB</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="Expires">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
Expires</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">Response.Expires[</span>=<var class="replaceable">intNumMinutes</var><span class="LITERAL">]</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>Expires property</primary><secondary>Response
object</secondary>--> <!--<primary>expiring</primary><secondary>cached
web page data</secondary>--> <!--<primary>caching web
pages</primary><secondary>expiring cache</secondary>-->
<!--<primary>web
pages</primary><secondary>caching</secondary><tertiary>expiring
cached data</tertiary>--> <!--<primary>web
servers</primary><secondary>caching</secondary><tertiary>expiring
cache</tertiary>-->Expires vpeB́ANCAgRs[^݂̃y[WLbV鎞Ԃ𕪒PʂŎw肵܂BExpires vpeBŎw肳ꂽԓɃ[U[y[Wɖ߂ꍇAy[W̃LbVꂽo[W[U[ɕ\܂BExpires vpeBݒ肵Ȃꍇ́AMicrosoft Management Console ̉zfBNg [vpeB] y[WʂĉzfBNgɐݒ肳ꂽARec̗Lgp܂BL̏ݒl 24 ԂłB</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<dl>
<dt><var class="replaceable">intNumMinutes</var></dt>
<dd><p>NCAguEŨ݂y[WLbV鎞Ԑ (P)</p></dd>

</dl>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>NCAguEUy[WLbVȂ悤ɂɂ́A<var class="replaceable">intNumMinutes</var> ̒lgp܂BɂANCAg̓y[WɈړ邽т Web T[o[y[Wėv悤ɂȂ܂B</p>




<p>XNvg Expires vpeB𕡐ݒ肵悤ƂƁAłZݒ肪gp܂BƂ΁ÃXNvg܂ރy[W̏ꍇAExpires vpeB̍Ō̐ݒ肪 20 łɂ炸ANCAgŃy[WLbV̂ 5 ɂȂ܂B</p>




<span class="PROGRAMLISTING"><pre>&lt;% 

Response.Expires = 10
Response.Expires = 5
Response.Expires = 20

%&gt;</pre></span>




<p>HTTP wb_l̕ύXƂȂ鑼̃vpeBƓ悤ɁAobt@OꍇAT[o[ <span class="LITERAL">&lt;HTML&gt;</span> ^ONCAgɑMO Expires vpeBݒ肷Kv܂B</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="ExpiresAbsolute">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
ExpiresAbsolute</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">Response.ExpiresAbsolute[=[</span> <var class="replaceable">Date</var> <span class="LITERAL">] [</span> <var class="replaceable">Time</var> <span class="LITERAL">] ]</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>ExpiresAbsolute property
(Response)</primary>-->݂̃y[W̃Rec̃LbVNCAgRs[^Œ~܂BExpiresAbsolute vpeBݒ肷ƂɎԂw肵ȂꍇAԂ͎w肵̐^钆ɂȂ܂BExpiresAbsolute vpeBŎw肳ꂽOɃ[U[݂̃y[WɈړꍇANCAg͂̃y[W̃LbVo[W\܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<dl>
<dt><var class="replaceable">Date</var></dt>
<dd><p>݂̃y[WLbVȂȂBgptĺA//ÑtH[}bgłKv܂BAResponse wb_őMĺARFC 1123 ̓ttH[}bgɏ܂B</p></dd>




<dt><var class="replaceable">Time</var></dt>
<dd><p>݂̃y[W[U[̃Rs[^ŃLbVȂȂ <var class="replaceable">Date</var> ̐mȎ܂Btw肵ȂꍇANCAguEUł݂͌̓̐^钆Ƀy[W̗L؂܂BWeb T[o[́Aw肷鎞Ԃ GMT ɕϊĂÃwb_NCAgɑM܂B</p></dd>

</dl>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<span class="PROGRAMLISTING"><pre>&lt;% 
' The following code sets the current page's caching on the 
' client machine to end at 9 P.M. on 7 May 1998 GMT. NOTE 
' the use of the "#" to designate the date and time.
Response.ExpiresAbsolute=#May 7, 1998 21:00:00#
%&gt;</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Ɏ悤ɁAExpiresAbsolute vpeB̒lœw肷ɂ́AV[vL (#) gpKv܂B</p>




<p>Expires vpeBƓ悤ɁÃvpeB𕡐ݒ肷ƁÃ݂y[W̃LbV̓XNvgŎw肵łɏI܂B</p>




<p>HTTP wb_l̕ύXƂȂ鑼̃vpeBƓ悤ɁAobt@OꍇAT[o[ <span class="LITERAL">&lt;HTML&gt;</span> ^ONCAgɑMO ExpiresAbsolute vpeBݒ肷Kv܂B   </p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="IsClientConnected">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
IsClientConnected</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">Response.IsClientConnected</span><!--<primary>IsClientConnected property (Response)</primary>-->
<!--<primary>web servers</primary><secondary>checking connection to</secondary>-->
<!--<primary>connection, checking</primary>-->
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p>Response IuWFNg Write \bhŌɎgpɁA܂NCAg Web T[o[ɐڑĂꍇ <span class="LITERAL">True</span> ɂȂAȊȌꍇ <span class="LITERAL">False</span> ɂȂǂݎpvpeBB</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Ȃ</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<span class="PROGRAMLISTING"><pre>&lt;% 
' The following code determines whether the client
' is still connected to the server. If it is still
' connected, then the SessionID (see <link linkend="ch10-1-fm2xml">Chapter 10</link>) will be 
' used to retrieve the user information from a database.
If Response.IsClientConnected Then
   strUserName = fn_strGetUserName(Session.SessionId)
End If
%&gt;</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>IsClientConnected vpeBgpƁANCAgؒfĂ邩ǂ𒲂ׂ邱Ƃł܂B݂͌̃XNvgꍇɔɏdvłBNCAgɐؒfĂꍇ́AXNvg̏𑱍sȂƂdvłB</p>




<p>̗ł́AXNvgŏ𑱍sOɃNCAgڑ`FbN@܂BNCAgɐؒfĂꍇAׂĂ̏𒆎~łȒPȕ@́AResponse IuWFNg End \bhgp邱ƂłB</p>




<span class="PROGRAMLISTING"><pre>&lt;%Response.Buffer = True%&gt;
&lt;HTML&gt;
&lt;HEAD&gt;&lt;TITLE&gt;One Long Script&lt;/TITLE&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;% 

' The following code is the first of two segments
' in this script that will take a long time to process:
[SOME LONG CODE]

' Now before performing the second half of this long script,
' check to see if the client is still connected.
If Response.IsClientConnected Then
   [SECOND LONG CODE SEGMENT]
Else
   ' The client is no longer connected, end the script's
   ' processing.
   Response.End
End If
%&gt;
&lt;/BODY&gt;&lt;/HTML&gt;</pre></span>




<p>̃vpeB֗Ȃ̂́AHTTP 1.1 gpNCAgΏۂłꍇ݂̂łBuEU HTTP 1.0 gpĂꍇAIIS  HTTP ̐Vo[W (1.1+) ݂̂ƈѐiIȐڑł͂ȂANCAǧʂ HTTP v Keep-Alive vgpZbVǐՂ܂B</p>




<p>IsClientConnected gp ASP t@C IIS 4.0 ŎsĂꍇAt@CRecNCAgɑMꍇ̂݁AvpeB̒lmɂȂ܂B܂AT[o[TChR[ĥ݂܂ރt@C̏ꍇ́AIsClientConnected ̌ʒl͐mɂ͂Ȃ܂BAIIS 5.0 ł́Ã݂t@CNCAgɃRec𑗐M邩ǂɂ炸AIsClientConnected ͓삵܂B</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="PICS">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
PICS</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">Response.PICS(</span><var class="replaceable">strPICSLabel</var><span class="LITERAL">)</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>PICS property
(Response)</primary>--> <!--<primary>headers, HTTP</primary><secondary>PICS
system for</secondary>--> <!--<primary>PICS rating
system</primary>--> <!--<primary>rating web pages</primary>-->
<!--<primary>web
pages</primary><secondary>rating (PICS
system)</secondary>-->PICS (Platform for Internet Content Selection) x HTTP wb_ɒǉ܂B PICS VXéAWeb RecɃxtARecreational Software Advisory Council (RSAC) ₻̐egD SafeSurf Ȃǂ̊itT[rXANetNanny  CyberWatch Ȃǂ̃Rec\tgEFAɂĐݒ肳ꂽ܂܂Ȋɏ]ẴRecitł悤ɂ܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<dl>
<dt><var class="replaceable">strPICSLabel</var></dt>
<dd><p>ǉ PICS x̃RecŜ܂ޕlBPICS x͎̕ō\܂B</p></dd>

</dl>




<ul><dd><p>		x쐬itT[rX URLB</p></dd><dd><p>Reĉ̂̊itɊւ܂ށAPICS `т̊g\ "/l" ̃yÃZbgBɂ́AitsꂽA̗LȂǂ܂܂܂B</p></dd><dd><p>Recɗ^ꂽit\AitT[rXɂĎw肳ꂽ "/l" ̃yÃZbgBƂ΁ARSAC ɂ̓\tgEFÅitpƂĖ\́AI`ʁAtAk[h 4 ̑܂B 4 ̑ƑΉĺA(V 0 S 1 L 3 N 0) ̂悤ɂȂ܂B</p></dd></ul>
</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<span class="PROGRAMLISTING"><pre>&lt;% 
' The following piece of code sets a PICS label for the 
' content of this page corresponding to the rating discussed
' earlier.
Dim strPicsLabel 

strPicsLabel = _
       "(PICS-1.1 &lt;HTTP://www.rsac.org/ratingsv01.html&gt; "
strPicsLabel = strPicsLabel &amp; "labels on " &amp; Chr(34)
strPicsLabel = strPicsLabel &amp; "2000.07.20T06:00-0000" &amp; _
               Chr(34)
strPicsLabel = strPicsLabel &amp; " until " &amp; Chr(34)
strPicsLabel = strPicsLabel &amp; "2000.12.31T23:59-0000" &amp; _
               Chr(34)
strPicsLabel = strPicsLabel &amp; "ratings (V 0 S 1 L 3 N 0))"

Response.PICS(strPicsLabel)
%&gt;</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p> PICS xł͎̂ƂĂ܂B</p>




<ul><dd><p>	gpꂽ PICS Ă 1.1 łB</p></dd><dd><p>	itT[rX RSAC łB</p></dd><dd><p>itT[rX URL  <systemitem role="url">http://www.rsac.org/ratingsv01.html</systemitem> łB</p></dd><dd><p>	Recx 2000 N 7  20  6 A.M. (GMT) ɗLɂȂ܂B</p></dd><dd><p>	Recx 2000 N 12  31  11:59 P.M. (GMT) ɗL؂܂B</p></dd><dd><p>Recxł́A\̓x 0AÓI`ʃx 1Atx 3Ak[hx 0 łB</p></dd></ul>
<p>HTTP wb_ɒǉۂ PICS x͎̂ƂłB</p>




<span class="PROGRAMLISTING"><pre>PICS-label:(PICS-1.1 http://www.rsac.org/ratingsv01.html 
labels on "1998.03.20T06:00-0000" until 
"1999.12.31T023:59-0000" ratings (v 0 s 1 l 3 n 0))</pre></span>




<p>HTTP wb_ɖ PICS xǉ悤ƂƁANCAgRs[^͂𖳎܂Bȍ~́APICS vpeBlݒ肷邽тɍŌ̒l㏑܂BŌ̐ݒ݂̂ۂɃNCAgRs[^ɑM܂B</p>




<p>PICS x͈̓pň݂͂܂B̂߁A<span class="LITERAL">Chr(34)</span>  (34 ͈pɑ ASCII ) gpKv܂BłȒPɏɂ́AŌ PICS xɎw肳ƂɃx͂AR[hs̊ep̕Œu܂B</p>




<span class="PROGRAMLISTING"><pre>" &amp; Chr(34) &amp; "</pre></span>




<p>HTTP wb_̒lύX鑼̃vpeBƓ悤ɁAPICS x̒ǉ́Aobt@OȂAT[o[ <span class="LITERAL">&lt;HTML&gt;</span> ^ONCAgɑMOɍsKv܂B    </p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="Status">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
Status</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">Response.Status(</span><var class="replaceable">strStatusDescSetting</var><span class="LITERAL">)</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>Status property</primary><secondary>Response
object</secondary>--> <!--<primary>HTTP (Hypertext
Transfer Protocol)</primary><secondary>status
codes</secondary>-->Web T[o[NCAgRs[^ɕԂ HTTP Xe[^Xsw肵܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<dl>
<dt><var class="replaceable">strStatusDescSetting</var></dt>
<dd><p><var class="replaceable">strStatusDescSetting</var> ́AHTTP v̏ԂуXe[^XR[h̒ZA3 ̃Xe[^XR[h܂ޕlłB</p>




<p><var class="replaceable">strStatusDescSetting</var> p[^̎gp\Ȓl݂͌ HTTP dlɋLڂĂA̍xJeSɕނ܂B
</p>



<p>HTTP dl̍ŐVł́A<systemitem role="url">http://www.w3c.org/protocols</systemitem> ŎQƂł܂B</p>



<dl>
<dt><span class="LITERAL">1xx</span></dt>
<dd><p>100 ͈̔͂́Ẩ݂Xe[^XNCAgɑM邽߂ɗ\񂳂Ă܂B</p></dd>




<dt><span class="LITERAL">2xx</span></dt>
<dd><p>200 ͈̔͂́AȉXe[^XNCAgɑM邽߂ɗ\񂳂Ă܂B</p></dd>




<dt><span class="LITERAL">3xx</span></dt>
<dd><p>300 ͈̔͂́ANCAg̃_CNgpɗ\񂳂Ă܂B̃Xe[^X͈͂́AꎞI܂͉iIɈړꂽvy[WɎgp܂B</p></dd>




<dt><span class="LITERAL">4xx</span></dt>
<dd><p><!--<primary>errors</primary><secondary>HTTP status codes
for</secondary>--> <!--<primary>web
browsers</primary><secondary>errors, HTTP status codes
for</secondary>-->400 ͈̔͂́ANCAgG[ʒmNCAgɑM邽߂ɗ\񂳂Ă܂BƂ΁Aړꂽy[W⑶݂Ȃy[WɈړ悤ƂƁA<span class="LITERAL">404</span> <span class="LITERAL">Not</span> <span class="LITERAL">Found</span> G[Xe[^XuEUɑM܂B</p></dd>




<dt>5xx</dt>
<dd><p>500 ͈̔͂́A
<!--<primary>web servers</primary><secondary>errors, HTTP
status codes for</secondary>-->T[o[G[ʒmNCAgɑM邽߂ɗ\񂳂Ă܂BƂ΁AꎞIȃI[o[[hT[o[ێ̂߂ɗvłȂT[o[̃y[WɈړ悤ƂƁAXe[^X <span class="LITERAL">503 Service Not Available</span> 邱Ƃ܂B</p></dd>

</dl></dd>

</dl>



</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<span class="PROGRAMLISTING"><pre>&lt;% 
' The following code sets the Status property of the 
' Response object to 404 Not Found. Unless other content is 
' generated for the page, the status code will be 
' interpreted by itself by the client.
strStatusText = _
      "404 Not Found The Web server cannot find the "
strStatusText = strStatusText &amp; "file or script you asked "
strStatusText = strStatusText &amp; "for. Please check the URL "
strStatusText = strStatusText &amp; "to ensure that the path "
strStatusText = strStatusText &amp; "is correct."
Response.Status = strStatusText
%&gt;</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p> Response wb_̐ݒƓ悤ɁAȍ~́AStatus vpeBݒ肷邽тɍŌ̐ݒ肪Zbg܂B</p>




<p>HTTP wb_l̕ύXƂȂ鑼̃vpeBƓ悤ɁAobt@OꍇAT[o[ <span class="LITERAL">&lt;HTML&gt;</span> ^ONCAgɑMO Status vpeBݒ肷Kv܂B</p>



</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="Cookies">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
Cookies</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="PROGRAMLISTING"><pre>strKeyName = Response.Cookies.Key(3)
strKeyValue = Response.Cookies.Item(strKeyName)</pre></span></td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>Set-Cookie header</primary>-->
<!--<primary>Cookies
collection</primary><secondary>Response
object</secondary>--> <!--<primary>Response
object</primary><secondary>Cookies collection</secondary>-->
Response IuWFNg <!--<primary>cookies</primary>-->Cookies RNVgpƁAASP AvP[V <span class="LITERAL">Set-Cookie</span> HTTP wb_gpāACookie NCAg̃Rs[^ɏނƂł܂B݂Ȃ Cookie ̒lݒ肵悤ƂƁA̒l쐬܂B Cookie ݂ꍇAݒ肷VĺANCAgRs[^ɏ܂ꂽÂl㏑܂B</p>




<p>Request IuWFNg Cookies RNVƓ悤ɁAResponse IuWFNg Cookies RNV̊e Cookie  Cookie <!--<primary>dictionary,
cookie</primary>-->\Ƃł܂B<link linkend="ch07-1-fm2xml"> 7 </link>ɋLڂĂ悤ɁACookie ́Az̊evfOŎʉ\ȓ_ɂāAAzzɎ\łBCookie ̏ڍׂɂẮA<link linkend="ch07-1-fm2xml"> 7 </link> Request IuWFNg Cookies RNV̍QƂĂB</p>




<p>Response IuWFNg Cookies RNVɂ́A ASP RNV悤ɁÃvpeB܂B</p>




<dl>
<dt>Item</dt>
<dd><p><!--<primary>Item property</primary><secondary>Cookies
collection (Response)</secondary>-->RNV̗̓vf̒lԂ܂BACew肷ɂ́ACfbNXԍ܂̓L[gp܂B</p></dd>




<dt>Key</dt>
<dd><p><!--<primary>Key property</primary><secondary>Cookies
collection</secondary><tertiary>Response
object</tertiary>-->Cookies RNV̗̓vf̖OԂ܂Bevf̒l Item vpeBŕ\悤ɁAevf̖O Key vpeBŕ\܂B</p>




<p>̃L[̖Osȏꍇ́AQƂgpĎ擾ł܂BƂ΁ARNV 3 Ԗڂ̃L[ƁAvf̖Om肽Ƃ܂B̏ꍇ́ÃR[hgpł܂B</p>




<span class="PROGRAMLISTING"><pre>strKeyName = Response.Cookies.Key(3)
strKeyValue = Response.Cookies.Item(strKeyName)</pre></span>




<p>A3 Ԗڂ̗vf̃L[ <span class="LITERAL">COLOR_PREF</span> łƂ킩Ăꍇ́ÃR[hgpĂ̗vf̒l擾ł܂B</p>




<span class="PROGRAMLISTING"><pre>strKeyValue = Response.Cookies.Item("COLOR_PREF")</pre></span></dd>




<dt>Count</dt>
<dd><p><!--<primary>Count property</primary><secondary>Cookies
collection (Response)</secondary>-->Cookies RNV Count vpeB́ARNV݂̌ Cookie \܂B</p></dd>

</dl>




<p> ASP RNVƓ悤ɁAItem vpeBgp邱ƂɂACookies RNV̔Cӂ̃tB[h̒l擾ł܂BA{}jȂ̕Ɠ悤ɁAȉ̗ł͍\ZkĂ̂ŁAItem vpeB̎gp𖾎IɎĂ킯ł͂܂Bɗ܂B</p>




<span class="PROGRAMLISTING"><pre>Response.Cookies("UserPref") = "Red"</pre></span>




<p>̃R[h́ÃR[h̒Zk`łB</p>




<span class="PROGRAMLISTING"><pre>Response.Cookies.Item("UserPref") = "Red"</pre></span>




<p>Cookie ̒lݒ肷ɂ́Â悤ȃR[hgp܂B</p>




<span class="PROGRAMLISTING"><pre>Response.Cookies("LastSearch") = _
   "SELECT * FROM Details WHERE Color = 'Red'"</pre></span>




<tip id="ch08-42-fm2xml" role="ora">
<p>RNV Item vpeBAKey vpeBA Count vpeB̏ڍׂɂẮA<link linkend="ch04-40130"> 4 </link> <link linkend="ch04-3-fm2xml">4.2 </link>QƂĂB</p>



</tip>

<p>Oq̃R[h̏ꍇAɑ݂ȂƂ Cookie <span class="LITERAL">UserPref</span> 쐬܂B݂Ƃ͌̒l㏑܂B Cookie ́ANCAguEUɑM鉞ɒǉ <span class="LITERAL">SET-COOKIE</span> wb_ɕϊ܂BNCAguEU͂̉wb_MA[U[̃Rs[^ <span class="LITERAL">UserPref</span> Cookie 쐬 (܂͏㏑) ܂B</p>




<p>Cookies RNV̊evf (Cookie  Cookie ̏ꍇ̓TuL[) ɂ́A Cookie ŗL̑܂B</p>




<dl>
<dt><span class="LITERAL">Domain</span></dt>
<dd><p><!--<primary>domain attribute</primary><secondary>Cookies
collection (Response)</secondary>-->Cookie ݒ肵ADomain vpeBŐݒ肳hCŁAy[W Cookie ̒l݂̂NCAgMł悤ɂ܂BDomain vpeB͏ݐpłBƂ΁AhC "mycorp.com"  <span class="LITERAL">LastSearch</span> Cookie ɒǉƂ܂B̏ꍇAy[W̗vɁANCAg Cookie ̒l <em>mycorp.com</em> hCɑM܂B</p>




<span class="PROGRAMLISTING"><pre>Response.Cookies("LastSearch").Domain = "mycorp.com"</pre></span></dd>




<dt><span class="LITERAL">Expires</span></dt>
<dd><p><!--<primary>Expires property</primary><secondary>Cookies
collection (Response)</secondary>-->
<!--<primary>expiring</primary><secondary>cookies</secondary>-->
<!--<primary>cookies</primary><secondary>expiration
dates</secondary>-->Cookie ̗L؂ANCAgRs[^ŔjBƂ΁ACookie ̗L 2000 N 1  29 ɐ؂Ƃ܂B̏ꍇÂ悤ȃR[hgpł܂B</p>




<span class="PROGRAMLISTING"><pre>Response.Cookies("LastSearch").Expires = #1/29/2000#</pre></span>




<p>Expires vpeB̒lݒ肵ȂꍇACookie ̓NCAgZbV̊ԒANCAgRs[^ɑ݂܂BExpires vpeBɐݒ肷tl݂̓tO̓t̏ꍇACookie ̓NCAgZbV̊ԒANCAgRs[^ɑ݂܂BExpires vpeB͏ݐpłB</p></dd>




<dt><span class="LITERAL">HasKeys</span></dt>
<dd><p><!--<primary>HasKeys attribute, Cookies collection
(Response)</primary>-->ɐ悤ɁACookies RNV Cookie  Cookie \Ƃł܂B Cookie ɃTuL[邩ǂ𒲂ׂɂ́Â悤ɁA Cookie  HasKeys vpeBgpKv܂B</p>




<span class="PROGRAMLISTING"><pre>blnHasKeys = Response.Cookies("Colors").HasKeys
If blnHasKeys Then
   strColor3 = Response.Cookies("Colors")("color3")
End If</pre></span>




<p> HasKeys vpeB͓ǂݎpłB</p></dd>




<dt><span class="LITERAL">Path</span></dt>
<dd><p><!--<primary>Path property</primary><secondary>Cookies
collection (Response)</secondary>-->Path vpeB́ANCAguEUzpXy[WvƂɁANCAguEUɂ Cookie ̑MƂȂ鉼zfBNg\܂BƂ΁ANCAg Cookie  <filename>/Apps/SearchApps</filename> zfBNg̃XNvĝ݂ɑM悤ɂꍇ́ÃR[hgp܂B</p>




<span class="PROGRAMLISTING"><pre>Response.Cookies("LastSearch").Path = "/Apps/SearchApps"</pre></span>




<p>Cookie  Path ݒ肳ȂꍇApX̓ftHgŌ݂ ASP AvP[ṼpXɂȂ܂BPath vpeB͏ݐpłB</p></dd>




<dt><span class="LITERAL">Secure</span></dt>
<dd><p><!--<primary>Secure property, Cookies collection
(Response)</primary>-->
<!--<primary>security</primary><secondary>cookie
information</secondary>-->Secure vpeBgpƁANCAg SSL (Secure Sockets Layer) gpĂꍇɂ̂݁ANCAg Cookie 𑗐M邩ǂwł܂BƂ΁ACookie ɉ炩̋@ۑ (͌ł͂܂񂪁AKvꍇ܂)A[U[̃uEU SSL gpĂƂɌȀ𑗐M悤ɐݒ肵܂B̕@gp΁A@ Cookie ǂݎ\啝ɒጸ邱Ƃł܂B̒PȃR[hsgp܂B</p>




<span class="PROGRAMLISTING"><pre>Response.Cookies("SensitiveCookie").Secure = True</pre></span>




<p>Secure vpeB̓u[l󂯎܂BSecure vpeB͏ݐpłB</p></dd>

</dl>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Ɏ̂́AResponse IuWFNg Cookies RNV̎gpɊւA芮SȗłB̃R[h́AOq̍ڂĂ܂B</p>




<span class="PROGRAMLISTING"><pre>&lt;HTML&gt;
&lt;HEAD&gt;&lt;TITLE&gt;Search Cookie Example&lt;/TITLE&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;H3&gt;Welcome to the Search Results Options Page.&lt;/H3&gt;
You can use the following form to select your search results display
options. 
These options will be saved on your machine as a set of cookies.
&lt;FORM ACTION="/SaveSearchCookie.asp" METHOD = POST&gt;
First Name:&lt;INPUT TYPE = TEXT NAME = "txtFirstName"&gt;&lt;BR&gt;
Last Name:&lt;INPUT TYPE = TEXT NAME = "txtLastName"&gt;&lt;BR&gt;
User ID:&lt;INPUT TYPE = TEXT NAME = "txtUserId"&gt;&lt;BR&gt;
Check All that Apply:
Show Descriptions:
&lt;INPUT TYPE = CHECKBOX NAME = "chkUserPrefs"VALUE = "Desc"&gt;
Show Hit Count (display how many matches found per result):
&lt;INPUT TYPE = CHECKBOX NAME = "chkUserPrefs"VALUE = "Count"&gt;
Show Relevance with Graph:
&lt;INPUT TYPE = CHECKBOX NAME = "chkUserPrefs" 
VALUE = "Graph"&gt;
Use Small Fonts(will show more results per page):
&lt;INPUT TYPE = CHECKBOX NAME = "chkUserPrefs" 
VALUE = "Small"&gt;
&lt;INPUT TYPE = SUBMIT VALUE = "Save Selections"&gt;
&lt;/FORM&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;</pre></span>




<p>̃R[h (<filename>SaveSearchCookie.ASP</filename>) ́AÕtH[őIꂽl擾A[U[̃Rs[^ Cookie Ƃĕۑ܂B</p>




<span class="PROGRAMLISTING"><pre>&lt;% 
' The following code retrieves user information from the 
' Form collection of the Request object (see <link linkend="ch07-1-fm2xml">Chapter 7</link>) and  
' then writes the information to a set of cookies on the
' client machine.
Dim strFirstName
Dim strLastName
Dim strUserId
Dim intCounter
Dim intPrefCounter
Dim strKeyName
Dim arstrUserPrefs( )

' Retrieve user information...
strFirstName   = Request.Form("txtFirstName")
strLastName    = Request.Form("txtLastName")
strUserId      = Request.Form("txtUserId")

intPrefCounter = 1

For intCounter = 1 to Request.Form("chkUserPrefs").Count
   ReDim Preserve arstrUserPrefs(intPrefCounter)
   arstrUserPrefs(intPrefCounter - 1) = _
      Request.Form("chkUserPrefs")(intCounter)
   intPrefCounter = intPrefCounter + 1
Next

' Write the user information to the client machine.
' Save all the information in cookies, but set the
' Expires property only for the UserId. We'll want
' that to remain on the client machine after the session
' is complete.
Response.Cookies("UserFirstName") = strFirstName
Response.Cookies("UserLastName") = strLastName

For intCounter = 1 to intPrefCounter - 1
   strKeyName = "Pref" &amp; CStr(intCounter)
   Response.Cookies("UserPrefs")(strKeyName) = _
      arstrUserPrefs(intCounter - 1)
Next

' Note in the first line below, that when no property
' is specified, the value of the cookie is set.
Response.Cookies("UserId") = strUserId
Response.Cookies("UserId").Expires = #December 31, 1999#
Response.Cookies("UserId").Domain = "www.customsearch.com"
Response.Cookies("UserId").Path = "/usersearch/"
Response.Cookies("UserId").Secure = True
%&gt;</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>̗ł́AUserFirstName Cookie NCAgRs[^ɑM܂BŁA<var class="replaceable">strFirstName</var> ϐ̒l͕ "David" łƂ܂BNCAgRs[^ɑMۂ HTTP wb_͎̂ƂłB</p>




<span class="PROGRAMLISTING"><pre><!--<primary>Set-Cookie header</primary>-->Set-Cookie:USERFIRSTNAME=david</pre></span>




<p>̗őM 3 ̒ĺA800 (NCAguEU̕)A8 (rbgPʂ̐F[x)A English (p̐ݒ) Ƃ܂BNCAgɑMۂ HTTP wb_͎̂ƂłB</p>




<span class="PROGRAMLISTING"><pre>Set-Cookie:USERPREFS=PREF1=800&amp;PREF2=8&amp;PREF3=english</pre></span>




<p>Cookie ̒lƂđM镶lɃXy[X܂܂ĂꍇÃXy[X HTTP wb_ŃvXL (+) ɒu܂B</p>




<p>̂悤ɁA<var class="replaceable">SubKey</var> w肹ɁANCAgRs[^ <span class="LITERAL">UserPrefs</span> Cookie Ɍ㑱 Cookie l𑗐MƂ܂B</p>




<span class="PROGRAMLISTING"><pre>Response.Cookies("UserPrefs") = "german"</pre></span>




<p><span class="LITERAL">PREF1</span>  <span class="LITERAL">PREF2</span>  2 ̒l㏑A<span class="LITERAL">UserPrefs</span> Cookie  Count vpeB 1 Ԃ܂B</p>




<p>܂́A㑱 Cookie l𑗐MACookie ɒl͂邪L[͂ȂNCAgRs[^ɑ΂ <var class="replaceable">SubKey</var> w肷ƁANCAgRs[^Ɋɂl㏑܂B</p>




<p>Response IuWFNg Cookies RNV̒l𐶐ɁAw肳ꂽ Cookie ɒ`ꂽTuL[ɂ邩ǂ𒲂ׂKvꍇ́A Cookie  HasKeys vpeB]܂BCookie ɃTuL[`ĂꍇAHasKeys vpeB <span class="LITERAL">True</span> ɂȂ܂B</p>




<p>HTTP wb_l̕ύXƂȂ鑼̃vpeBƓ悤ɁAobt@OꍇAT[o[ <span class="LITERAL">&lt;HTML&gt;</span> ^ONCAgɑMO Cookies RNV̒lݒ肷Kv܂B  </p>



</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="AddHeader">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
AddHeader</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="PROGRAMLISTING"><pre><!--<primary>ClientCustomHeader header</primary>-->ClientCustomHeader:CustomHeaderValue</pre></span></td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>responses,
HTTP</primary><secondary>headers</secondary><tertiary>custom</tertiary>-->
<!--<primary>headers, HTTP</primary><secondary>custom, adding
to responses</secondary>--> <!--<primary>HTTP
(Hypertext Transfer
Protocol)</primary><secondary>headers</secondary><tertiary>custom,
adding to responses</tertiary>-->
<!--<primary>AddHeader method (Response)</primary>-->
<!--<primary>Response
object</primary><secondary>methods
reference</secondary>-->ΉlƎ HTTP wb_ǉł悤ɂ܂BȑOɒǉꂽwb_ƓO HTTP wb_ǉꍇA2 Ԗڂ̃wb_͍ŏ̃wb_ɒǉđM܂B2 Ԗڂ̃wb_ǉĂAO̍ŏ̃wb_̒l͏㏑܂Bwb_́A HTTP ɒǉƍ폜ł܂B</p>




<p><link linkend="ch07-1-fm2xml"> 7 </link> ServerVariables RNV̍ɎĂ̈ȊO HTTP wb_NCAg Web T[o[ɑMꍇ́A<var class="replaceable">HTTP_HeaderName</var> gpẴwb_擾ł܂BƂ΁ANCAg HTTP wb_𑗐MƂ܂B</p>




<span class="PROGRAMLISTING"><pre><!--<primary>ClientCustomHeader header</primary>-->ClientCustomHeader:CustomHeaderValue</pre></span>




<p>̏ꍇ́A̍\gpĂ̗vf̒l擾ł܂B</p>




<span class="PROGRAMLISTING"><pre>&lt;%
Request.ServerVariables("HTTP_ClientCustomHeader")
%&gt;</pre></span>




<p>͍xȃ\bhłBTdɌv悵ĎgpĂBResponse IuWFNg̑̃\bhŖړIȂꍇ́AAddHeader \bh̑ɂ̃\bhgpĂB</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<dl>
<dt><var class="replaceable">strName</var></dt>
<dd><p>wb_ɒǉ HTML wb_̖O</p></dd>




<dt><var class="replaceable">strValue</var></dt>
<dd><p>wb_ɒǉVwb_̏l</p></dd>

</dl>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<span class="PROGRAMLISTING"><pre>&lt;% 
' The following code adds the CUSTOM-ERROR HTML header to 
' the HTTP response headers.
Response.AddHeader "CUSTOM-ERROR", "Your browser is not IE."
%&gt;</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>HTTP wb_ύX Response IuWFNg̑̃\bhƃvpeB̂悤ɁA<span class="LITERAL">&lt;HTML&gt;</span> ^ONCAgɑMOɁAAddHeader \bhĂяoKv܂BResponse IuWFNg Buffer vpeBlȑO <span class="LITERAL">True</span> ɐݒ肵Ăꍇ́AFlush \bh܂łɌĂяoƂȂAAddHeader gpł܂B<span class="LITERAL">&lt;HTML&gt;</span> ^ONCAgɑMA܂ Flush \bhĂяo AddHeader ĂяoꍇAAddHeader Ăяoƃ^CG[܂B</p>




<p>JX^wb_ł̓A_[XRAgpȂłBgpƁAɑ݂wb_Ƃ̞B܂B̒P؂ɂ́AɃnCtgp܂BnCt܂܂ꂽJX^wb_̒l擾ɂ́AJX^wb_̒l擾ƂɁAnCtA_[XRAɒu܂B</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="AppendToLog">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
AppendToLog</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">Response.AppendToLog</span> <var class="replaceable">strLogEntry</var>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>AppendToLog method
(Response)</primary>-->
<!--<primary>logging</primary><secondary>web site
activity</secondary>--> <!--<primary>web
pages</primary><secondary>logging site
activity</secondary>--> <!--<primary>web
servers</primary><secondary>logging site
activity</secondary>-->݂̃NCAgv Web T[o[OGgɕǉ܂Bxɒǉł͍̂ő 80 ݂̂łAAppendToLog \bh͕ĂяoƂł܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">Web TCgł̑̃O</td>
</tr>
<tr>
<td colspan="2" class="description">




<p>IIS ł́A[U[̑eLXgt@C܂ ODBC ݊f[^x[XɋL^ł܂BIIS ̃O Windows NT ̃OƂ͈قȂAWindows NT Cxgr[Ac[gpăR[h\邱Ƃ͂ł܂BIIS Ot@C\ɂ́A ASCII eLXgt@C̏ꍇƓ悤ɊJAXvbhV[g܂̓f[^x[XvOɃC|[g܂BODBC f[^x[XɃOL^Ƃ́Ãf[^x[Xւ̃NG[ʂăO\ł܂B</p>




<p>IIS ̃Ot@ĆA<filename>winnt\system32\LogFiles\W3svc1\ex[date].log</filename> ɂ܂BIIS ̃ftHgÕGgɂ́AAĂяo IPAĂяõ\bh (<span class="LITERAL">GET/POST</span>)Auri-stem (T[o[pXȂ)Aьʂ̃Xe[^X܂܂܂B</p>



<p>̓Iɂ́AWeb TCgł̃[U[Ɋւ鎟̏L^ł܂B</p>




<ul><dd><p>	QƂ̓</p></dd><dd><p>	vꂽy[W</p></dd><dd><p>	[U[ IP AhX</p></dd><dd><p>	T[o[ɐڑĂ</p></dd></ul>
<p>̏AуAvP[V Response.AppendToLog ʂẴOɒǉgpāATCg̏̊JAZLeBAѐVT[o[ɂ (ׂꍇ) vł܂B</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<dl>
<dt><var class="replaceable">strLogEntry</var></dt>
<dd><p>Web T[o[Ō݂̃NCAgṽGgɒǉ镶B͍̒̕ő 80 Ƃ邱Ƃł܂BWeb T[o[OGgɒǉ镶ɂ̓R}܂߂邱Ƃ͂ł܂BIIS Web OGg̃tB[h̓R}؂ł邩łB</p></dd>

</dl>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<span class="PROGRAMLISTING"><pre>&lt;%
' Assume you have constructed one string containing all that 
' you'd like logged to the web's server. This string is 
' declared as strOrigLogContent. The following Do...While 
' loop code will loop through your content and log it to the
' web server 79 characters at a time.
Do While Len(strOrigLogContent) &gt; 0 
   If Len(strOrigLogContent) &gt;= 79 Then
      strLogString = Left(strOrigLogContent, 79)
   Else
      strLogString = strOrigLogContent
   End If
   
   ' Log the content.
   Response.AppendToLog strLogString 

   If Len(strOrigLogContent) &gt; Len(strLogString) Then
      strOrigLogContent = _
         Right(strOrigLogContent, _
         Len(strOrigLogContent) - Len(strLogString))
   Else
      strOrigLogContent = "
   End If
Loop
%&gt;</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>IIS  Web T[o[Oɏǉł悤ɂɂ́AOt@CgpđL^ Web TCgɑ΂āA[gOvpeB] V[g [URI NG] IvVLɂKv܂B</p>




<p>̃\bh́AWeb TCgł̑Ɋւڍ׏ێŁAԂ̐ߖɔɖ𗧂܂BGg (IP AhX܂݂܂BWindows NT AJEgAK܂ނƂ܂) ƋɃOt@Cɕۑe[U[ɌŗL̎ʎqꍇATCgŗ\ȂG[ԂɃTCgɖK₵Ă[U[ɒׂ邱Ƃł܂B̃\bh́A[U[ɂ 100% mF邱Ƃ͂łȂ̂ŁAZLeB͐M邱Ƃł܂񂪁ALpȃ\bhłB</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="BinaryWrite">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
BinaryWrite</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">Request.BinaryWrite</span> <var class="replaceable">arbyteData</var>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>BinaryWrite method
(Response)</primary>--> <!--<primary>writing</primary><secondary>response
content</secondary>--> <!--<primary>responses,
HTTP</primary><secondary>writing</secondary>--> <!--<primary>HTTP (Hypertext
Transfer
Protocol)</primary><secondary>responses</secondary><tertiary>writing</tertiary>-->ϊs킸ɁARecɏ𒼐ڏ݂܂BAvP[VŃNCAgɃoCif[^ޏꍇÃ\bhgpāAMf[^̃oCi當f[^ɕϊȂ悤ɂKv܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<dl>
<dt><var class="replaceable">arbyteData</var></dt>
<dd><p>RecɏރoCg̔z</p></dd>

</dl>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>̃TvR[h́ABinaryWrite ɑ΂PȌĂяoƂĂ͒łAɃf[^x[X̃oCif[^KvꍇɁAɖ𗧂TO܂B</p>




<span class="PROGRAMLISTING"><pre>&lt;% 

' The following code retrieves a binary object
' (in this case a JPG image) and writes it to the
' client using BinaryWrite. (For more information
' on ActiveX Data Objects usage, see <link linkend="ch12-1-fm2xml">Chapter 12</link>.)

' Create an ADO connection object.
Set adoCon = Server.CreateObject("ADODB.Connection")

' Use the Open method of the Connection object
' to open an ODBC connection with the database
' represented by the DSN ImageDatabase.
adoCon.Open "ImageDatabase"

' Use the Execute method of the ADO Connection object
' to retrieve the binary data field from the database.
Set adoRecImgData = adoCon.Execute _
   ("SELECT ImageData FROM Images WHERE ImageId = 1234")

' Create a Field object by setting one equal to a
' specific field in the recordset created previously.
Set adoFldImage = adoRecImgData("ImageData")

' Use the ActualSize property of Field object to retrieve
' the size of the data contained in the Field object. After
' this line you will know how many bytes of data reside in
' the Field object.
lngFieldDataLength = adoFldImage.ActualSize

' Use the BinaryWrite method to write 4K bytes of binary
' data at a time. So, first we need to determine how many
' 4K blocks the data in the Field object represents.
lngBlockCount = lngFieldDataLength / 4096

' Now let's get how many bytes are left over after removing
' lngBlockCount number of bytes.
lngRemainingData = lngFieldDataLength Mod 4096

' We now must set the HTTP content type Response header
' so that the browser will recognize the data being sent
' as being JPEG image data.
Response.ContentType = "image/JPEG"

' Loop through and write the first lngBlockCount number
' of binary blocks of data.
For intCounter = 1 to lngBlockCount
   Response.BinaryWrite adoFldImage.GetChunk(4096)
Next

' Now write the last remainder of the binary data.
Response.BinaryWrite adoFldImage.GetChunk(lngRemainingData)

' Close the recordset.
adoRecImgData.Close
%&gt;</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>NCAgɑMKvoCif[^f[^x[XɕۑԂɂȂ܂ł́ABinaryWrite \bh̎gpɂ͐悤Ɏv܂Ǎ BinaryWrite ͔ɗLpɂȂ܂BR[hTv悤ɁA 1 ̗́AoCif[^̕ۑ\ DBMS ɕۑāA擾ꂽC[Wf[^̕\łB</p>




<p>̃\bhgpāAMicrosoft SQL Server f[^x[Xɕۑꂽ JPEG C[W\ (Oq̂悤ȃR[hgp)AɉKɋ@\܂BC[Wւ̃Nvł͂ȂAC[Wf[^݂̂܂ HTTP 𑗐M̂ŁAf[^x[XANZXxł΁APȃNCAgvɉăNCAgɃC[W𑗐MɂȂ܂B


</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="Clear">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
Clear</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">Response.Clear</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>Clear method (Response)</primary>-->
<!--<primary>Response object</primary><secondary>clearing
contents</secondary>-->
<!--<primary>Buffer property
(Response)</primary><secondary>clearing</secondary>-->
<!--<primary>web pages</primary><secondary>buffering
downloads</secondary>--> <!--<primary>responses,
HTTP</primary><secondary>buffering</secondary>-->
<!--<primary>HTTP (Hypertext Transfer
Protocol)</primary><secondary>responses</secondary><tertiary>buffering</tertiary>-->Response obt@݂̌̃Recɂ܂B̍ۂɂ́Aobt@Oꂽ̓NCAgɑM܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Ȃ</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<span class="PROGRAMLISTING"><pre>&lt;% Response.Buffer = True%&gt;
&lt;HTML&gt;
&lt;HEAD&gt;&lt;TITLE&gt;Response Clear Method Example&lt;/TITLE&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;%
On Error Resume Next

[CODE TO DO SOME CALCULATIONS]
lngFormulaElement1 = 47
lngFormulaElement2 = lngFormulaElement1 - 47
lngFormulaElement3 = 23

' This next line results in a division-by-zero error 
' (Error Number 11).
lngNewCalcTotal = lngFormulaElement3 / lngFormulaElement2

' This next line will still be processed because we used
' ON ERROR RESUME NEXT.
If Err &lt;&gt; 0 Then
   ' The following code clears the Response buffer, writes 
   ' an error message, and ends the response, forcing IIS to 
   ' send the response to the client. Note that the Buffer 
   ' property has to be set to True for the following code
   ' to work properly.
   Response.Clear
   Response.Write "Your request resulted in the error: " &amp; _
      Err.Description
   Response.Write " Error Number: " &amp; Err.Number
   Response.Write "&lt;BR&gt;Call your web admin at 555-HELP for "
   Response.Write "more information."
   Response.End
End If
%&gt;
<lineannotation>. . . [additional code]</lineannotation></pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Response IuWFNg Clear \bh́AHTTP wb_NAAReĉ݂NA܂BŎ悤ɁAResponse IuWFNg Buffer vpeB <span class="LITERAL">True</span> ɐݒ肷Kv܂BȊȌꍇÃ\bhgpƃ^CG[܂B</p>




<p><!--<primary>errors</primary><secondary>Clear method for
sending</secondary>-->Clear \bh̍łdvȎgp@ 1 ƂāAobt@NAANCAguEUɉʂȂ (̏ꍇÂ̗悤ȃG[) 𑗐M邱Ƃ܂B</p>




<p>̂悤ɃG[ߑAG[NCAgɑM邽߂ɂ́ABuffer vpeB <span class="LITERAL">True</span> ɐݒ肷邾łȂÃR[hsgpāAG[gbv悤ɂKv܂B</p>




<span class="PROGRAMLISTING"><pre>On Error Resume Next</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="End">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
End</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">Response.End</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>End method (Response)</primary>-->
<!--<primary>Buffer property
(Response)</primary><secondary>End method and</secondary>-->
<!--<primary>web
pages</primary><secondary>buffering
downloads</secondary><tertiary>sending buffer
remains</tertiary>--> <!--<primary>responses,
HTTP</primary><secondary>buffering</secondary><tertiary>sending
buffer remains</tertiary>--> <!--<primary>HTTP (Hypertext Transfer
Protocol)</primary><secondary>responses</secondary><tertiary>buffering</tertiary>-->obt@łׂ̏̂Ă̕ۑIAobt@݂̌̃RecɃNCAgɑM܂BEnd \bȟĂяoɑ݂R[h͏܂BEnd \bȟĂяo܂łɃXNvgɂė\񂳂Ă (XNvgňȑOɎgpĂf[^x[XIuWFNgȂ) ͉܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Ȃ</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Oq Clear \bh̗QƂĂB</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Buffer vpeB <span class="LITERAL">True</span> ɐݒ肳ꂽꍇAEnd \bhĂяoƁAFlush \bhĂяô悤 Response obt@tbVł܂B̍QƂĂBAFlush \bȟĂяoƂ͈قȂAEnd ̌ĂяõR[h Web T[o[ɂď܂B</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="Flush">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
Flush</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">Response.Flush</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>Flush method</primary><secondary>Response
object</secondary>-->݉obt@ɂ邷ׂẴf[^ɃNCAgɑM܂BResponse IuWFNg Buffer vpeB <span class="LITERAL">True</span> ɐݒ肳ĂȂÃ\bhł̓^CG[܂B̃\bhgpƁÂ܂܂ȕ𐏈ӂɃNCAgɑMł܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Ȃ</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<span class="PROGRAMLISTING"><pre>&lt;% Response.Buffer = True%&gt;
&lt;HTML&gt;
&lt;HEAD&gt;&lt;TITLE&gt;Response Flush Method Example&lt;/TITLE&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;%
' Suppose for this example that this first part of the
' script retrieves some information from a database and
' that retrieval takes a long time, say 30 seconds.
' (Don't worry about the details of the ActiveX Data Object
' calls. They are covered later in the book and serve only
' as an example here of something that might take a long time.)
Set adoCon = Server.CreateObject("ADODB.Connection")
adoCon.Open MyDatabase
Set adoRec = adoCon.Execute([BIG SQL STATEMENT])

' Rather than continue to the second part of the script, in
' which a second slow SQL statement (say another 15 seconds)
' executes, first we'll use the Flush method to force the
' first part of the script results to the client. This way,
' the user can be looking at the results of the first query 
' while waiting for the second.
Response.Flush

' [Second LONG SQL statement.]
Set adoRec2 = adoCon.Execute([BIG SQL STATEMENT])
%&gt;
&lt;/BODY&gt;&lt;/HTML&gt;</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Response IuWFNg̃obt@O@\gpƁA𕔕IɃNCAgɑMł܂BƂ΁AȆgD̐ɑāAf[^x[X̏񂩂hItBX̃XgƂ܂BgD̐̓eLXgȂ̂ŁAăNCAgɑM̂ɂ͂قƂǎԂ͂܂B2 Ԗڂ̕ɂ͂葽̎Ԃ܂BŏɁAResponse IuWFNg Flush \bhgpđgD̐NCAgɑMAɁAXg炻𑗐M܂B̕@gpȂꍇAy[W̃_E[hxƂۂ[U[ɗ^\܂B</p>




<p>A1 ӂ܂BActive Server Pages  Flush \bhgpƁAT[o[͂̃y[WpɃNCAgM Keep-Alive v𖳎܂BāANCAgɑM񂲂ƂɐVڑs܂B  </p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="Redirect">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
Redirect</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">Response.Redirect</span> <var class="replaceable">strURL</var>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>URLs</primary><secondary>redirecting requests
to</secondary>--> <!--<primary>requests,
HTTP</primary><secondary>redirecting</secondary>-->
<!--<primary>HTTP (Hypertext Transfer
Protocol)</primary><secondary>requests</secondary><tertiary>redirecting</tertiary>-->
<!--<primary>redirecting requests</primary>-->
<!--<primary>Redirect method
(Response)</primary>-->NCAg̗vʂ URL Ƀ_CNg܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<dl>
<dt><var class="replaceable">strURL</var></dt>
<dd><p>NCAg̃_CNgƂȂVꏊ URL (Universal Resource Locator) </p></dd>

</dl>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<span class="PROGRAMLISTING"><pre>&lt;% 
' The following code determines whether the client has
' security clearance for a certain page. If not, it 
' is redirected to another URL.
[...Code to determine user's clearance for the current page...]

If Not(strUserSecurity = "ADMIN" or strUserSecurity = "SUPERADMIN") Then
   Response.Redirect "/security/noclearance.asp?usrid=09563"
End If
%&gt;</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Redirect \bhĂяoƂɎgp <var class="replaceable">strURL</var> ̒ĺA URL  DNS Ƃ邩AzfBNgƃt@CƂ邱Ƃł܂Bvꂽy[WƓtH_ɂt@CƂ邱Ƃł܂B</p>




<p>XNvg HTTP ̖{ւ̃RecLqꍇARedirect \bhւ̌ĂяosƁÃRec̓XNvgɂĖ܂B</p>




<p>Redirect \bȟĂяóAStatus vpeB "302 Object Moved" ɐݒ肵A<span class="LITERAL">Location</span> HTTP wb_gpă[U[Vꏊɑ邱ƂƊTOIɓłB</p>




<p>_CNgł́Aꕔ̌Â (HTTP 1.0) NCAguEÚAV URL ĂяoꂽƂɁA <span class="LITERAL">POST</span> v <span class="LITERAL">GET</span> vɕύX邱Ƃ܂BNCAg <span class="LITERAL">POST</span> ɁA<span class="LITERAL">GET</span> \bhŏł̃f[^܂܂ĂꍇA͏dvȍlƂȂ܂BHTTP 1.1 vgRT|[gVuEUł́A̖肪CĂƍl܂B</p>




<p>ASP t@C IIS 5.0 ŎsĂꍇ́AServer \bh Execute ܂ Transfer ̎gpKv܂B̃\bhł́ARedirect ŕKvƂȂNCAgƃT[o[Ԃ̒ʐM͍s܂B</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="Write">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
Write</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">Response.Write</span><!--<primary>Write method</primary><secondary>Response object</secondary>-->
<!--<primary>writing</primary><secondary>HTTP responses</secondary>-->
<!--<primary>responses, HTTP</primary><secondary>writing</secondary>-->
<!--<primary>HTTP (Hypertext Transfer Protocol)</primary>--> <var class="replaceable">vntData</var>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p>HTTP ̖{ɏ𒼐ڏ݂܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<dl>
<dt><var class="replaceable">vntData</var></dt>
<dd><p>NCAguEU󂯎AHTML eLXgXg[ɑ}Bɂ́AeLXgAHTML ^OANCAgTChXNvgȂǂ܂܂܂BASP XNvĝ̂̃f[^ϐ́AoAg^łB̒lɂ <span class="LITERAL">%&gt;</span> V[PX܂߂邱Ƃ͂łAWeb uEU͂ANeBuT[o[XNvg̍ŌłƉ߂܂BXNvgł̕V[PXKvȏꍇ́AɃGXP[vV[PX <span class="LITERAL">%\&gt;</span> gp܂B</p></dd>

</dl>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<span class="PROGRAMLISTING"><pre>&lt;% 
strDirCommand = "Dir /w"

' The following code writes an entire HTML table to the HTTP
' response body.
Response.Write "&lt;TABLE&gt;"
Response.Write "&lt;TR&gt;"
Response.Write "&lt;TD WIDTH = 50%\&gt;"
Response.Write "Command"
Response.Write "&lt;/TD&gt;"
Response.Write "&lt;TD WIDTH = 50%\&gt;"
Response.Write "Description"
Response.Write "&lt;/TD&gt;"
Response.Write "&lt;/TR&gt;"
Response.Write "&lt;TR&gt;"
Response.Write "&lt;TD WIDTH = 50%\&gt;"
Response.Write Chr(34) &amp; strDirCommand &amp; Chr(34)
Response.Write "&lt;/TD&gt;"
Response.Write "&lt;TD WIDTH = 50%\&gt;"
Response.Write "This allows you to see a list of the "
Response.Write "files in &lt;BR&gt; your current folder."
Response.Write "&lt;/TD&gt;"
Response.Write "&lt;/TR&gt;"
Response.Write "&lt;/TABLE&gt;"
%&gt;</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>TvvOŎ悤ɁAWrite \bhgpāANCAguEUW HTML łƉ߂鉞̖{ւ̃NCAgTChXNvgA HTML Lqł܂B</p>




<p><!--<primary>carriage return,
writing</primary>--> <!--<primary>line feed,
writing</primary>--> <!--<primary>quotation marks,
writing</primary>-->LbW^[/CtB[h܂͈p𑗐Mɂ́ÃR[hɎ悤 <function>Chr</function><!--<primary>Chr
function</primary>--> ֐gp܂B</p>




<span class="PROGRAMLISTING"><pre>' Note:  Chr(34) is a quotation mark. Chr(13) &amp; Chr(10) is 
' the equivalent of a carriage return, followed by a 
' linefeed.
Response.Write "Hamlet said, " &amp; Chr(34) &amp; _
   "To be, or not to be." &amp; Chr(34) &amp; Chr(13) &amp; Chr(10)</pre></span>




<p>ŌɁAWrite \bhgpāAT[o[TChXNvg̒lNCAguEUɑMł܂B̃\bhgpƁA<span class="LITERAL">&lt;%=</span>...<span class="LITERAL">%&gt;</span> \LgăT[o[TChR[hƃNCAgR[hsAR[hȌɂȂ邱Ƃ܂BƂ΁ÃR[h́A<span class="LITERAL">&lt;%=</span>...<span class="LITERAL">%&gt;</span>  Response.Write \bh̗gpāA<var class="replaceable">strHighestPrice</var> f[^̒l\܂B





</p>




<span class="PROGRAMLISTING"><pre>&lt;%
Response.Write "The highest price is " &amp; strHighestPrice
Response.Write ".&lt;BR&gt;"

' The same line as the preceding using the other format:
%&gt;
The highest price is &lt;%=strhighestPrice%&gt;.&lt;BR&gt; </pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
</body>
</html>
