File: test_send.adb

package info (click to toggle)
adacgi 1.6-9
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 280 kB
  • ctags: 21
  • sloc: ada: 1,068; makefile: 86
file content (14 lines) | stat: -rw-r--r-- 281 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- Test sending a cookie.

with Text_IO; use Text_IO;
with CGI; use CGI;

procedure Test_Send is
begin
   Set_Cookie("test_key", "test_value");
   Put_CGI_Header;
   Put_HTML_Head(Title=>"test send cookie");
   Put_Line("<p>This is just a test");
   Put_HTML_Tail;
end Test_Send;