File: auto_cookie.htt

package info (click to toggle)
httest 2.4.23-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,876 kB
  • sloc: ansic: 19,553; sh: 10,550; xml: 1,047; makefile: 510; lisp: 145; perl: 31
file content (18 lines) | stat: -rw-r--r-- 374 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CLIENT
  _AUTO_COOKIE on
  _REQ foo.bar.com 80
  __GET / HTTP/1.1
  __Host: foo.bar.com
  # this is not neccessary here, but do not bother the script or the functionality
  __Cookie: AUTO
  _
  _WAIT

  __GET /foo HTTP/1.1
  __Host: foo.bar.com
  # if a cookies was received by the last GET, this cookie will be set here instead
  # of AUTO
  __Cookie: AUTO
  _
  _WAIT
END