test "basic default HTTP transactions"
-server s1 -listen :9080 {
+server s1 -listen localhost:9080 {
rxreq
txresp
}
test "basic default HTTP transactions with expect"
-server s1 -listen :9080 {
+server s1 -listen localhost:9080 {
rxreq
expect req.request == GET
expect req.proto == HTTP/1.1
test "basic default HTTP transactions with expect and options"
-server s1 -listen :9080 {
+server s1 -listen localhost:9080 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
test "dual independent HTTP transactions"
-server s1 -listen :9080 {
+server s1 -listen localhost:9080 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
txresp -proto HTTP/1.2 -status 201 -msg Foo
}
-server s2 -listen :9081 {
+server s2 -listen localhost:9081 {
rxreq
expect req.request == GET
expect req.proto == HTTP/1.1
test "dual shared server HTTP transactions"
-server s1 -listen :9080 -repeat 2 {
+server s1 -listen localhost:9080 -repeat 2 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
test "dual shared client HTTP transactions"
-server s1 -listen :9080 {
+server s1 -listen localhost:9080 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
txresp -proto HTTP/1.2 -status 201 -msg Foo
}
-server s2 -listen :9081 {
+server s2 -listen localhost:9081 {
rxreq
expect req.request == GET
expect req.proto == HTTP/1.1
test "bidirectional message bodies"
-server s1 -listen :9080 {
+server s1 -listen localhost:9080 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
test "TCP reuse"
-server s1 -listen :9080 {
+server s1 -listen localhost:9080 {
rxreq
expect req.url == "/1"
txresp -hdr "Content-Length: 10" -body "123456789\n"
vtc_log(s->vl, 0, "Server name must start with 's'");
exit (1);
}
- s->listen = ":9080";
+ s->listen = "localhost:9080";
AZ(VSS_parse(s->listen, &s->addr, &s->port));
s->repeat = 1;
s->depth = 1;