You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
out=$(curl -v $base/method/get 2>&1); match "HTTP/.* 200"&& match -iP "Content-Length: 4[\r\n]"&& match -iP "Content-Type: text/plain; charset=utf-8[\r\n]"&& match -iP "X-Is-Head: false[\r\n]"&& match -P "GET$"
106
106
out=$(curl -v $base/method/get -I 2>&1); match "HTTP/.* 200"&& match -iP "Content-Length: 4[\r\n]"&& match -iP "Content-Type: text/plain; charset=utf-8[\r\n]"&& match -iP "X-Is-Head: true[\r\n]"
107
107
out=$(curl -v $base/method/head 2>&1); match "HTTP/.* 200"&& match -iP "Content-Length: 5[\r\n]"&& match -iP "Content-Type: text/plain; charset=utf-8[\r\n]"&& match -iP "X-Is-Head: false[\r\n]"&& match -P "HEAD$"
108
-
out=$(curl -v $base/method/head -I 2>&1);skipif "Server: ReactPHP"&&match "HTTP/.* 200"&& match -iP "Content-Length: 5[\r\n]"&& match -iP "Content-Type: text/plain; charset=utf-8[\r\n]"&& match -iP "X-Is-Head: true[\r\n]"# skip built-in webserver (always includes Content-Length : 0)
108
+
out=$(curl -v $base/method/head -I 2>&1); match "HTTP/.* 200"&& match -iP "Content-Length: 5[\r\n]"&& match -iP "Content-Type: text/plain; charset=utf-8[\r\n]"&& match -iP "X-Is-Head: true[\r\n]"
109
109
110
110
out=$(curl -v $base/etag/ 2>&1); match "HTTP/.* 200"&& match -iP "Content-Length: 0[\r\n]"&& match -iP "Etag: \"_\""
111
111
out=$(curl -v $base/etag/ -H 'If-None-Match: "_"'2>&1); match "HTTP/.* 304"&& notmatch -i "Content-Length"&& match -iP "Etag: \"_\""
0 commit comments