File: binary_protocol.hte

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 (20 lines) | stat: -rw-r--r-- 295 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
INCLUDE $TOP/test/config.htb

CLIENT
_REQ $YOUR_HOST $YOUR_PORT
#_CACHE_COUNT SET 0
_BINARY:SEND "03 00"
#_X HTON16 AUTO.LEN
_BINARY:SEND "41 41 41 41 41"
#_CACHE_COUNT GET LEN
_FLUSH
END

SERVER $YOUR_PORT
_RES
_EXPECT . "03 01"
_BINARY:RECV 2 
#_RECV NTOH16 LEN
#_RECV $LEN
_BINARY:RECV 5
END