vessel/scripts/q/example.session
Ari Archer cdb9cf008f
Implement recursive macros.
Signed-off-by: Ari Archer <ari@ari.lt>
2024-12-08 03:29:19 +02:00

18 lines
355 B
Text

$ begin example example.com 443 -- 443 is the SSL port
$ ssl example
-- Sends an SSL request
GET / HTTP/1.0\r\n
Host: example.com\r\n
\r\n
$ read example
$ end example
$ begin ari ari.lt 80 -- Plain HTTP
GET / HTTP/1.0\r\n
Host: ari.lt\r\n
X-Test: print %uuid 4%\r\n
%randhead%: %randstr%\r\n
\r\n
$ print -- Prints session stack
$ read ari
$ end ari