ASP涓璻esponse.addheader鎬庝箞浣跨敤
鍦ˋSP涓紝Response.AddHeader
鏂规硶鐢ㄤ簬鍚戝搷搴旂殑 HTTP 鏍囧ご涓坊鍔犱竴涓敭鍊煎銆備互涓嬫槸浣跨敤 Response.AddHeader
鏂规硶鐨勭ず渚嬶細
<%
Response.AddHeader "Content-Disposition", "attachment; filename=example.txt"
Response.AddHeader "Content-Type", "text/plain"
Response.Write "Hello, World!"
%>
鍦ㄤ笂闈㈢殑绀轰緥涓紝Response.AddHeader
鏂规硶琚敤浜庢坊鍔犱袱涓搷搴斿ご銆傜涓€涓搷搴斿ご璁剧疆浜嗘枃浠朵笅杞界殑鏂囦欢鍚嶄负 example.txt
锛岀浜屼釜鍝嶅簲澶磋缃簡鍐呭绫诲瀷涓虹函鏂囨湰銆傛渶鍚庯紝浣跨敤 Response.Write
杈撳嚭浜?鈥淗ello, World!鈥濄€?/p>