Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 1 | varnishtest "H1 authority validation and host normalizarion based on the scheme (rfc3982 6.3.2) or the method (connect)" |
| 2 | |
| 3 | feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.6-dev0)'" |
| 4 | feature ignore_unknown_macro |
| 5 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 6 | barrier b1 cond 2 -cyclic |
| 7 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 8 | syslog S1 -level info { |
| 9 | # C1 |
| 10 | recv |
| 11 | expect ~ "^.* uri: GET http://toto:poue@hostname/c1 HTTP/1.1; host: {hostname}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 12 | barrier b1 sync |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 13 | |
| 14 | # C2 |
| 15 | recv |
| 16 | expect ~ "^.* uri: GET http://hostname:8080/c2 HTTP/1.1; host: {hostname:8080}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 17 | barrier b1 sync |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 18 | |
| 19 | # C3 |
| 20 | recv |
| 21 | expect ~ "^.* uri: GET https://hostname/c3 HTTP/1.1; host: {hostname}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 22 | barrier b1 sync |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 23 | |
| 24 | # C4 |
| 25 | recv |
| 26 | expect ~ "^.* uri: GET https://hostname:80/c4 HTTP/1.1; host: {hostname:80}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 27 | barrier b1 sync |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 28 | |
| 29 | # C5 |
| 30 | recv |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 31 | expect ~ "^.* uri: CONNECT hostname:80 HTTP/1.1; host: {hostname}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 32 | barrier b1 sync |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 33 | recv |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 34 | expect ~ "^.* uri: CONNECT hostname:80 HTTP/1.1; host: {hostname}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 35 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 36 | recv |
| 37 | expect ~ "^.* uri: CONNECT hostname:80 HTTP/1.1; host: {hostname:}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 38 | barrier b1 sync |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 39 | |
| 40 | # C6 |
| 41 | recv |
| 42 | expect ~ "^.* uri: CONNECT hostname:443 HTTP/1.1; host: {hostname}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 43 | barrier b1 sync |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 44 | recv |
| 45 | expect ~ "^.* uri: CONNECT hostname:443 HTTP/1.1; host: {hostname}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 46 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 47 | recv |
| 48 | expect ~ "^.* uri: CONNECT hostname:443 HTTP/1.1; host: {hostname:}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 49 | barrier b1 sync |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 50 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 51 | # C7 |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 52 | recv |
| 53 | expect ~ "^.* uri: CONNECT hostname:8443 HTTP/1.1; host: {hostname:8443}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 54 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 55 | |
| 56 | # C8 |
| 57 | recv |
| 58 | expect ~ "^.* uri: <BADREQ>; host: $" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 59 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 60 | |
| 61 | # C9 |
| 62 | recv |
| 63 | expect ~ "^.* uri: <BADREQ>; host: $" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 64 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 65 | |
| 66 | # C10 |
| 67 | recv |
| 68 | expect ~ "^.* uri: <BADREQ>; host: $" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 69 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 70 | |
| 71 | # C11 |
| 72 | recv |
| 73 | expect ~ "^.* uri: <BADREQ>; host: $" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 74 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 75 | |
| 76 | # C12 |
| 77 | recv |
| 78 | expect ~ "^.* uri: <BADREQ>; host: $" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 79 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 80 | |
| 81 | # C13 |
| 82 | recv |
| 83 | expect ~ "^.* uri: <BADREQ>; host: $" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 84 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 85 | |
| 86 | # C14 |
| 87 | recv |
| 88 | expect ~ "^.* uri: <BADREQ>; host: $" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 89 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 90 | |
| 91 | # C15 |
| 92 | recv |
| 93 | expect ~ "^.* uri: <BADREQ>; host: $" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 94 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 95 | |
| 96 | # C16 |
| 97 | recv |
| 98 | expect ~ "^.* uri: <BADREQ>; host: $" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 99 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 100 | |
| 101 | # C17 |
| 102 | recv |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 103 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 104 | expect ~ "^.* uri: <BADREQ>; host: $" |
| 105 | |
| 106 | # C18 |
| 107 | recv |
| 108 | expect ~ "^.* uri: <BADREQ>; host: $" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 109 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 110 | |
| 111 | # C19 |
| 112 | recv |
| 113 | expect ~ "^.* uri: <BADREQ>; host: $" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 114 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 115 | |
| 116 | # C20 |
| 117 | recv |
| 118 | expect ~ "^.* uri: GET http://hostname/c20 HTTP/1.1; host: {hostname}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 119 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 120 | |
| 121 | # C21 |
| 122 | recv |
| 123 | expect ~ "^.* uri: GET https://hostname/c21 HTTP/1.1; host: {hostname}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 124 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 125 | |
| 126 | # C22 |
| 127 | recv |
| 128 | expect ~ "^.* uri: GET http://hostname/c22 HTTP/1.1; host: {hostname:80}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 129 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 130 | |
| 131 | # C23 |
| 132 | recv |
| 133 | expect ~ "^.* uri: GET https://hostname/c23 HTTP/1.1; host: {hostname:443}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 134 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 135 | |
| 136 | # C24 |
| 137 | recv |
| 138 | expect ~ "^.* uri: GET http://hostname/c24 HTTP/1.1; host: {hostname}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 139 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 140 | |
| 141 | # C25 |
| 142 | recv |
| 143 | expect ~ "^.* uri: GET https://hostname/c25 HTTP/1.1; host: {hostname}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 144 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 145 | |
| 146 | # C26 |
| 147 | recv |
| 148 | expect ~ "^.* uri: GET http://hostname/c26 HTTP/1.1; host: {hostname:}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 149 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 150 | |
| 151 | # C27 |
| 152 | recv |
| 153 | expect ~ "^.* uri: GET https://hostname/c27 HTTP/1.1; host: {hostname:}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 154 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 155 | |
| 156 | # C28 |
| 157 | recv |
| 158 | expect ~ "^.* uri: GET http://hostname/c28 HTTP/1.1; host: {hostname}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 159 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 160 | |
| 161 | # C29 |
| 162 | recv |
| 163 | expect ~ "^.* uri: GET http://hostname/c29 HTTP/1.1; host: {hostname}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 164 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 165 | |
| 166 | # C30 |
| 167 | recv |
| 168 | expect ~ "^.* uri: GET https://hostname/c30 HTTP/1.1; host: {hostname}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 169 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 170 | |
| 171 | # C31 |
| 172 | recv |
| 173 | expect ~ "^.* uri: GET https://hostname/c31 HTTP/1.1; host: {hostname}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 174 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 175 | |
| 176 | # C32 |
| 177 | recv |
Christopher Faulet | 98b157e | 2024-05-24 15:59:35 +0200 | [diff] [blame] | 178 | expect ~ "^.* uri: GET http:/// HTTP/1.1; host: {}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 179 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 180 | |
| 181 | # C33 |
| 182 | recv |
Christopher Faulet | 98b157e | 2024-05-24 15:59:35 +0200 | [diff] [blame] | 183 | expect ~ "^.* uri: GET https:/// HTTP/1.1; host: {}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 184 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 185 | |
| 186 | # C34 |
| 187 | recv |
Christopher Faulet | 98b157e | 2024-05-24 15:59:35 +0200 | [diff] [blame] | 188 | expect ~ "^.* uri: GET http:/// HTTP/1.1; host: {}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 189 | barrier b1 sync |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 190 | |
| 191 | # C35 |
| 192 | recv |
Christopher Faulet | 98b157e | 2024-05-24 15:59:35 +0200 | [diff] [blame] | 193 | expect ~ "^.* uri: GET https:/// HTTP/1.1; host: {}$" |
| 194 | barrier b1 sync |
| 195 | |
| 196 | # C36 |
| 197 | recv |
| 198 | expect ~ "^.* uri: GET http://hostname/ HTTP/1.1; host: {hostname}$" |
| 199 | barrier b1 sync |
| 200 | |
| 201 | # C37 |
| 202 | recv |
| 203 | expect ~ "^.* uri: GET http://hostname/ HTTP/1.1; host: {hostname}$" |
| 204 | barrier b1 sync |
| 205 | |
| 206 | # C38 |
| 207 | recv |
| 208 | expect ~ "^.* uri: GET http://hostname/ HTTP/1.1; host: {hostname}$" |
| 209 | barrier b1 sync |
| 210 | |
| 211 | # C39 |
| 212 | recv |
| 213 | expect ~ "^.* uri: GET https://hostname/ HTTP/1.1; host: {hostname}$" |
| 214 | barrier b1 sync |
| 215 | |
| 216 | # C40 |
| 217 | recv |
| 218 | expect ~ "^.* uri: GET https://hostname/ HTTP/1.1; host: {hostname}$" |
| 219 | barrier b1 sync |
| 220 | |
| 221 | # C41 |
| 222 | recv |
| 223 | expect ~ "^.* uri: GET https://hostname/ HTTP/1.1; host: {hostname}$" |
| 224 | barrier b1 sync |
| 225 | |
| 226 | # C42 |
| 227 | recv |
| 228 | expect ~ "^.* uri: GET http://hostname:81/ HTTP/1.1; host: {hostname:81}$" |
| 229 | barrier b1 sync |
| 230 | |
| 231 | # C43 |
| 232 | recv |
| 233 | expect ~ "^.* uri: GET https://hostname:444/ HTTP/1.1; host: {hostname:444}$" |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 234 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 235 | } -start |
| 236 | |
| 237 | haproxy h1 -conf { |
| 238 | defaults |
| 239 | mode http |
| 240 | timeout connect "${HAPROXY_TEST_TIMEOUT-5s}" |
| 241 | timeout client "${HAPROXY_TEST_TIMEOUT-5s}" |
| 242 | timeout server "${HAPROXY_TEST_TIMEOUT-5s}" |
| 243 | |
| 244 | frontend fe |
| 245 | bind "fd@${fe}" |
| 246 | |
| 247 | http-request capture req.hdr(host) len 512 |
| 248 | log-format "uri: %r; host: %hr" |
| 249 | log ${S1_addr}:${S1_port} len 2048 local0 debug err |
| 250 | |
| 251 | http-request return status 200 |
| 252 | } -start |
| 253 | |
| 254 | # default port 80 with http scheme => should be normalized |
| 255 | # Be sure userinfo are skipped |
| 256 | client c1 -connect ${h1_fe_sock} { |
| 257 | txreq \ |
| 258 | -req "GET" \ |
| 259 | -url "http://toto:poue@hostname:80/c1" \ |
| 260 | -hdr "host: hostname:80" |
| 261 | |
| 262 | rxresp |
| 263 | expect resp.status == 200 |
| 264 | } -run |
| 265 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 266 | # Wait matching on log message |
| 267 | barrier b1 sync |
| 268 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 269 | # port 8080 with http scheme => no normalization |
| 270 | client c2 -connect ${h1_fe_sock} { |
| 271 | txreq \ |
| 272 | -req "GET" \ |
| 273 | -url "http://hostname:8080/c2" \ |
| 274 | -hdr "host: hostname:8080" |
| 275 | |
| 276 | rxresp |
| 277 | expect resp.status == 200 |
| 278 | } -run |
| 279 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 280 | # Wait matching on log message |
| 281 | barrier b1 sync |
| 282 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 283 | # default port 443 with https scheme => should be normalized |
| 284 | client c3 -connect ${h1_fe_sock} { |
| 285 | txreq \ |
| 286 | -req "GET" \ |
| 287 | -url "https://hostname:443/c3" \ |
| 288 | -hdr "host: hostname:443" |
| 289 | |
| 290 | rxresp |
| 291 | expect resp.status == 200 |
| 292 | } -run |
| 293 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 294 | # Wait matching on log message |
| 295 | barrier b1 sync |
| 296 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 297 | # port 80 with https scheme => no normalization |
| 298 | client c4 -connect ${h1_fe_sock} { |
| 299 | txreq \ |
| 300 | -req "GET" \ |
| 301 | -url "https://hostname:80/c4" \ |
| 302 | -hdr "host: hostname:80" |
| 303 | |
| 304 | rxresp |
| 305 | expect resp.status == 200 |
| 306 | } -run |
| 307 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 308 | # Wait matching on log message |
| 309 | barrier b1 sync |
| 310 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 311 | # CONNECT on port 80 => should be normalized |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 312 | client c5 -connect ${h1_fe_sock} { |
| 313 | txreq \ |
| 314 | -req "CONNECT" \ |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 315 | -url "hostname:80" \ |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 316 | -hdr "host: hostname:80" |
| 317 | |
| 318 | rxresp |
| 319 | expect resp.status == 200 |
| 320 | } -run |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 321 | |
| 322 | # Wait matching on log message |
| 323 | barrier b1 sync |
| 324 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 325 | client c5 -connect ${h1_fe_sock} { |
| 326 | |
| 327 | txreq \ |
| 328 | -req "CONNECT" \ |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 329 | -url "hostname:80" \ |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 330 | -hdr "host: hostname" |
| 331 | |
| 332 | rxresp |
| 333 | expect resp.status == 200 |
| 334 | } -run |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 335 | |
| 336 | # Wait matching on log message |
| 337 | barrier b1 sync |
| 338 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 339 | client c5 -connect ${h1_fe_sock} { |
| 340 | |
| 341 | txreq \ |
| 342 | -req "CONNECT" \ |
| 343 | -url "hostname:80" \ |
| 344 | -hdr "host: hostname:" |
| 345 | |
| 346 | rxresp |
| 347 | expect resp.status == 200 |
| 348 | } -run |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 349 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 350 | # Wait matching on log message |
| 351 | barrier b1 sync |
| 352 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 353 | # CONNECT on port 443 => should be normalized |
| 354 | client c6 -connect ${h1_fe_sock} { |
| 355 | txreq \ |
| 356 | -req "CONNECT" \ |
| 357 | -url "hostname:443" \ |
| 358 | -hdr "host: hostname:443" |
| 359 | |
| 360 | rxresp |
| 361 | expect resp.status == 200 |
| 362 | } -run |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 363 | |
| 364 | # Wait matching on log message |
| 365 | barrier b1 sync |
| 366 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 367 | client c6 -connect ${h1_fe_sock} { |
| 368 | txreq \ |
| 369 | -req "CONNECT" \ |
| 370 | -url "hostname:443" \ |
| 371 | -hdr "host: hostname" |
| 372 | |
| 373 | rxresp |
| 374 | expect resp.status == 200 |
| 375 | } -run |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 376 | |
| 377 | # Wait matching on log message |
| 378 | barrier b1 sync |
| 379 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 380 | client c6 -connect ${h1_fe_sock} { |
| 381 | txreq \ |
| 382 | -req "CONNECT" \ |
| 383 | -url "hostname:443" \ |
| 384 | -hdr "host: hostname:" |
| 385 | |
| 386 | rxresp |
| 387 | expect resp.status == 200 |
| 388 | } -run |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 389 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 390 | # Wait matching on log message |
| 391 | barrier b1 sync |
| 392 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 393 | # CONNECT on port non-default port => no normalization |
| 394 | client c7 -connect ${h1_fe_sock} { |
| 395 | txreq \ |
| 396 | -req "CONNECT" \ |
| 397 | -url "hostname:8443" \ |
| 398 | -hdr "host: hostname:8443" |
| 399 | |
| 400 | rxresp |
| 401 | expect resp.status == 200 |
| 402 | } -run |
| 403 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 404 | # Wait matching on log message |
| 405 | barrier b1 sync |
| 406 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 407 | # host miss-match => error |
| 408 | client c8 -connect ${h1_fe_sock} { |
| 409 | txreq \ |
| 410 | -req "GET" \ |
| 411 | -url "http://hostname1/" \ |
| 412 | -hdr "host: hostname2" |
| 413 | |
| 414 | rxresp |
| 415 | expect resp.status == 400 |
| 416 | } -run |
| 417 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 418 | # Wait matching on log message |
| 419 | barrier b1 sync |
| 420 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 421 | # port miss-match => error |
| 422 | client c9 -connect ${h1_fe_sock} { |
| 423 | txreq \ |
| 424 | -req "GET" \ |
| 425 | -url "http://hostname:80/" \ |
| 426 | -hdr "host: hostname:81" |
| 427 | |
| 428 | rxresp |
| 429 | expect resp.status == 400 |
| 430 | } -run |
| 431 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 432 | # Wait matching on log message |
| 433 | barrier b1 sync |
| 434 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 435 | # no host port with a non-default port in abs-uri => error |
| 436 | client c10 -connect ${h1_fe_sock} { |
| 437 | txreq \ |
| 438 | -req "GET" \ |
| 439 | -url "http://hostname:8080/" \ |
| 440 | -hdr "host: hostname" |
| 441 | |
| 442 | rxresp |
| 443 | expect resp.status == 400 |
| 444 | } -run |
| 445 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 446 | # Wait matching on log message |
| 447 | barrier b1 sync |
| 448 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 449 | # non-default host port with a default in abs-uri => error |
| 450 | client c11 -connect ${h1_fe_sock} { |
| 451 | txreq \ |
| 452 | -req "GET" \ |
| 453 | -url "http://hostname/" \ |
| 454 | -hdr "host: hostname:81" |
| 455 | |
| 456 | rxresp |
| 457 | expect resp.status == 400 |
| 458 | } -run |
| 459 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 460 | # Wait matching on log message |
| 461 | barrier b1 sync |
| 462 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 463 | # miss-match between host headers => error |
| 464 | client c12 -connect ${h1_fe_sock} { |
| 465 | txreq \ |
| 466 | -req "GET" \ |
| 467 | -url "http://hostname1/" \ |
| 468 | -hdr "host: hostname1" \ |
| 469 | -hdr "host: hostname2" |
| 470 | |
| 471 | rxresp |
| 472 | expect resp.status == 400 |
| 473 | } -run |
| 474 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 475 | # Wait matching on log message |
| 476 | barrier b1 sync |
| 477 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 478 | # miss-match between host headers but with a normalization => error |
| 479 | client c13 -connect ${h1_fe_sock} { |
| 480 | txreq \ |
| 481 | -req "GET" \ |
| 482 | -url "http://hostname1/" \ |
| 483 | -hdr "host: hostname1:80" \ |
| 484 | -hdr "host: hostname1" |
| 485 | |
| 486 | rxresp |
| 487 | expect resp.status == 400 |
| 488 | } -run |
| 489 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 490 | # Wait matching on log message |
| 491 | barrier b1 sync |
| 492 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 493 | # CONNECT authoriy without port => error |
| 494 | client c14 -connect ${h1_fe_sock} { |
| 495 | txreq \ |
| 496 | -req "CONNECT" \ |
| 497 | -url "hostname" \ |
| 498 | -hdr "host: hostname" |
| 499 | |
| 500 | rxresp |
| 501 | expect resp.status == 400 |
| 502 | } -run |
| 503 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 504 | # Wait matching on log message |
| 505 | barrier b1 sync |
| 506 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 507 | # host miss-match with CONNECT => error |
| 508 | client c15 -connect ${h1_fe_sock} { |
| 509 | txreq \ |
| 510 | -req "CONNECT" \ |
| 511 | -url "hostname1:80" \ |
| 512 | -hdr "host: hostname2:80" |
| 513 | |
| 514 | rxresp |
| 515 | expect resp.status == 400 |
| 516 | } -run |
| 517 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 518 | # Wait matching on log message |
| 519 | barrier b1 sync |
| 520 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 521 | # port miss-match with CONNECT => error |
| 522 | client c16 -connect ${h1_fe_sock} { |
| 523 | txreq \ |
| 524 | -req "CONNECT" \ |
| 525 | -url "hostname:80" \ |
| 526 | -hdr "host: hostname:443" |
| 527 | |
| 528 | rxresp |
| 529 | expect resp.status == 400 |
| 530 | } -run |
| 531 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 532 | # Wait matching on log message |
| 533 | barrier b1 sync |
| 534 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 535 | # no host port with non-default port in CONNECT authority => error |
| 536 | client c17 -connect ${h1_fe_sock} { |
| 537 | txreq \ |
| 538 | -req "CONNECT" \ |
| 539 | -url "hostname:8080" \ |
| 540 | -hdr "host: hostname" |
| 541 | |
| 542 | rxresp |
| 543 | expect resp.status == 400 |
| 544 | } -run |
| 545 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 546 | # Wait matching on log message |
| 547 | barrier b1 sync |
| 548 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 549 | # no authority => error |
| 550 | client c18 -connect ${h1_fe_sock} { |
| 551 | txreq \ |
| 552 | -req "CONNECT" \ |
| 553 | -url "/" \ |
| 554 | -hdr "host: hostname" |
| 555 | |
| 556 | rxresp |
| 557 | expect resp.status == 400 |
| 558 | } -run |
| 559 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 560 | # Wait matching on log message |
| 561 | barrier b1 sync |
| 562 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 563 | # no authority => error |
| 564 | client c19 -connect ${h1_fe_sock} { |
| 565 | txreq \ |
| 566 | -req "CONNECT" \ |
| 567 | -url "hostname:" \ |
| 568 | -hdr "host: hostname" |
| 569 | |
| 570 | rxresp |
| 571 | expect resp.status == 400 |
| 572 | } -run |
| 573 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 574 | # Wait matching on log message |
| 575 | barrier b1 sync |
| 576 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 577 | |
| 578 | # default port 80 with http scheme but no port for host value => should be normalized |
| 579 | client c20 -connect ${h1_fe_sock} { |
| 580 | txreq \ |
| 581 | -req "GET" \ |
| 582 | -url "http://hostname:80/c20" \ |
| 583 | -hdr "host: hostname" |
| 584 | |
| 585 | rxresp |
| 586 | expect resp.status == 200 |
| 587 | } -run |
| 588 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 589 | # Wait matching on log message |
| 590 | barrier b1 sync |
| 591 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 592 | |
| 593 | # default port 443 with https scheme but no port for host value => should be normalized |
| 594 | client c21 -connect ${h1_fe_sock} { |
| 595 | txreq \ |
| 596 | -req "GET" \ |
| 597 | -url "https://hostname:443/c21" \ |
| 598 | -hdr "host: hostname" |
| 599 | |
| 600 | rxresp |
| 601 | expect resp.status == 200 |
| 602 | } -run |
| 603 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 604 | # Wait matching on log message |
| 605 | barrier b1 sync |
| 606 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 607 | |
| 608 | # http scheme, no port for the authority but default port for host value => no normalization |
| 609 | client c22 -connect ${h1_fe_sock} { |
| 610 | txreq \ |
| 611 | -req "GET" \ |
| 612 | -url "http://hostname/c22" \ |
| 613 | -hdr "host: hostname:80" |
| 614 | |
| 615 | rxresp |
| 616 | expect resp.status == 200 |
| 617 | } -run |
| 618 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 619 | # Wait matching on log message |
| 620 | barrier b1 sync |
| 621 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 622 | # https scheme, no port for the authority but default port for host value => no normalization |
| 623 | client c23 -connect ${h1_fe_sock} { |
| 624 | txreq \ |
| 625 | -req "GET" \ |
| 626 | -url "https://hostname/c23" \ |
| 627 | -hdr "host: hostname:443" |
| 628 | |
| 629 | rxresp |
| 630 | expect resp.status == 200 |
| 631 | } -run |
| 632 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 633 | # Wait matching on log message |
| 634 | barrier b1 sync |
| 635 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 636 | |
| 637 | # http scheme, empty port for the authority and no port for host value => should be normalized |
| 638 | client c24 -connect ${h1_fe_sock} { |
| 639 | txreq \ |
| 640 | -req "GET" \ |
| 641 | -url "http://hostname:/c24" \ |
| 642 | -hdr "host: hostname" |
| 643 | |
| 644 | rxresp |
| 645 | expect resp.status == 200 |
| 646 | } -run |
| 647 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 648 | # Wait matching on log message |
| 649 | barrier b1 sync |
| 650 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 651 | # https scheme, empty port for the authority and no port for host value => should be normalized |
| 652 | client c25 -connect ${h1_fe_sock} { |
| 653 | txreq \ |
| 654 | -req "GET" \ |
| 655 | -url "https://hostname:/c25" \ |
| 656 | -hdr "host: hostname" |
| 657 | |
| 658 | rxresp |
| 659 | expect resp.status == 200 |
| 660 | } -run |
| 661 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 662 | # Wait matching on log message |
| 663 | barrier b1 sync |
| 664 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 665 | # http scheme, no port for the authority and empty port for host value => no normalization |
| 666 | client c26 -connect ${h1_fe_sock} { |
| 667 | txreq \ |
| 668 | -req "GET" \ |
| 669 | -url "http://hostname/c26" \ |
| 670 | -hdr "host: hostname:" |
| 671 | |
| 672 | rxresp |
| 673 | expect resp.status == 200 |
| 674 | } -run |
| 675 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 676 | # Wait matching on log message |
| 677 | barrier b1 sync |
| 678 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 679 | # https scheme, no port for the authority and empty port for host value => no normalization |
| 680 | client c27 -connect ${h1_fe_sock} { |
| 681 | txreq \ |
| 682 | -req "GET" \ |
| 683 | -url "https://hostname/c27" \ |
| 684 | -hdr "host: hostname:" |
| 685 | |
| 686 | rxresp |
| 687 | expect resp.status == 200 |
| 688 | } -run |
| 689 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 690 | # Wait matching on log message |
| 691 | barrier b1 sync |
| 692 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 693 | # http scheme, default port for the authority and empty port for host value => should be normalized |
| 694 | client c28 -connect ${h1_fe_sock} { |
| 695 | txreq \ |
| 696 | -req "GET" \ |
| 697 | -url "http://hostname:80/c28" \ |
| 698 | -hdr "host: hostname:" |
| 699 | |
| 700 | rxresp |
| 701 | expect resp.status == 200 |
| 702 | } -run |
| 703 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 704 | # Wait matching on log message |
| 705 | barrier b1 sync |
| 706 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 707 | # http scheme, empty port for the authority and default port for host value => should be normalized |
| 708 | client c29 -connect ${h1_fe_sock} { |
| 709 | txreq \ |
| 710 | -req "GET" \ |
| 711 | -url "http://hostname:/c29" \ |
| 712 | -hdr "host: hostname:80" |
| 713 | |
| 714 | rxresp |
| 715 | expect resp.status == 200 |
| 716 | } -run |
| 717 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 718 | # Wait matching on log message |
| 719 | barrier b1 sync |
| 720 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 721 | # https scheme, default port for the authority and empty port for host value => should be normalized |
| 722 | client c30 -connect ${h1_fe_sock} { |
| 723 | txreq \ |
| 724 | -req "GET" \ |
| 725 | -url "https://hostname:443/c30" \ |
| 726 | -hdr "host: hostname:" |
| 727 | |
| 728 | rxresp |
| 729 | expect resp.status == 200 |
| 730 | } -run |
| 731 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 732 | # Wait matching on log message |
| 733 | barrier b1 sync |
| 734 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 735 | # https scheme, empty port for the authority and default port for host value => should be normalized |
| 736 | client c31 -connect ${h1_fe_sock} { |
| 737 | txreq \ |
| 738 | -req "GET" \ |
| 739 | -url "https://hostname:/c31" \ |
| 740 | -hdr "host: hostname:443" |
| 741 | |
| 742 | rxresp |
| 743 | expect resp.status == 200 |
| 744 | } -run |
| 745 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 746 | # Wait matching on log message |
| 747 | barrier b1 sync |
| 748 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 749 | # Strange cases |
| 750 | client c32 -connect ${h1_fe_sock} { |
| 751 | txreq \ |
| 752 | -req "GET" \ |
| 753 | -url "http://:" \ |
| 754 | -hdr "host: :80" |
| 755 | |
| 756 | rxresp |
| 757 | expect resp.status == 200 |
| 758 | } -run |
| 759 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 760 | # Wait matching on log message |
| 761 | barrier b1 sync |
| 762 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 763 | |
| 764 | client c33 -connect ${h1_fe_sock} { |
| 765 | txreq \ |
| 766 | -req "GET" \ |
| 767 | -url "https://:" \ |
| 768 | -hdr "host: :443" |
| 769 | |
| 770 | rxresp |
| 771 | expect resp.status == 200 |
| 772 | } -run |
| 773 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 774 | # Wait matching on log message |
| 775 | barrier b1 sync |
| 776 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 777 | # Strange cases |
| 778 | client c34 -connect ${h1_fe_sock} { |
| 779 | txreq \ |
| 780 | -req "GET" \ |
| 781 | -url "http://:" \ |
| 782 | -hdr "host: :" |
| 783 | |
| 784 | rxresp |
| 785 | expect resp.status == 200 |
| 786 | } -run |
| 787 | |
Christopher Faulet | 725d547 | 2023-06-19 19:00:52 +0200 | [diff] [blame] | 788 | # Wait matching on log message |
| 789 | barrier b1 sync |
| 790 | |
Christopher Faulet | 1c52121 | 2022-11-22 15:39:12 +0100 | [diff] [blame] | 791 | |
| 792 | client c35 -connect ${h1_fe_sock} { |
| 793 | txreq \ |
| 794 | -req "GET" \ |
| 795 | -url "https://:" \ |
| 796 | -hdr "host: :" |
| 797 | |
| 798 | rxresp |
| 799 | expect resp.status == 200 |
| 800 | } -run |
| 801 | |
Christopher Faulet | 98b157e | 2024-05-24 15:59:35 +0200 | [diff] [blame] | 802 | # Wait matching on log message |
| 803 | barrier b1 sync |
| 804 | |
| 805 | client c36 -connect ${h1_fe_sock} { |
| 806 | txreq \ |
| 807 | -req "GET" \ |
| 808 | -url "http://hostname" \ |
| 809 | -hdr "host: hostname" |
| 810 | |
| 811 | rxresp |
| 812 | expect resp.status == 200 |
| 813 | } -run |
| 814 | |
| 815 | # Wait matching on log message |
| 816 | barrier b1 sync |
| 817 | |
| 818 | client c37 -connect ${h1_fe_sock} { |
| 819 | txreq \ |
| 820 | -req "GET" \ |
| 821 | -url "http://hostname:80" \ |
| 822 | -hdr "host: hostname" |
| 823 | |
| 824 | rxresp |
| 825 | expect resp.status == 200 |
| 826 | } -run |
| 827 | |
| 828 | # Wait matching on log message |
| 829 | barrier b1 sync |
| 830 | |
| 831 | client c38 -connect ${h1_fe_sock} { |
| 832 | txreq \ |
| 833 | -req "GET" \ |
| 834 | -url "http://hostname:" \ |
| 835 | -hdr "host: hostname" |
| 836 | |
| 837 | rxresp |
| 838 | expect resp.status == 200 |
| 839 | } -run |
| 840 | |
| 841 | # Wait matching on log message |
| 842 | barrier b1 sync |
| 843 | |
| 844 | client c39 -connect ${h1_fe_sock} { |
| 845 | txreq \ |
| 846 | -req "GET" \ |
| 847 | -url "https://hostname" \ |
| 848 | -hdr "host: hostname" |
| 849 | |
| 850 | rxresp |
| 851 | expect resp.status == 200 |
| 852 | } -run |
| 853 | |
| 854 | # Wait matching on log message |
| 855 | barrier b1 sync |
| 856 | |
| 857 | client c40 -connect ${h1_fe_sock} { |
| 858 | txreq \ |
| 859 | -req "GET" \ |
| 860 | -url "https://hostname:443" \ |
| 861 | -hdr "host: hostname" |
| 862 | |
| 863 | rxresp |
| 864 | expect resp.status == 200 |
| 865 | } -run |
| 866 | |
| 867 | # Wait matching on log message |
| 868 | barrier b1 sync |
| 869 | |
| 870 | client c41 -connect ${h1_fe_sock} { |
| 871 | txreq \ |
| 872 | -req "GET" \ |
| 873 | -url "https://hostname:" \ |
| 874 | -hdr "host: hostname" |
| 875 | |
| 876 | rxresp |
| 877 | expect resp.status == 200 |
| 878 | } -run |
| 879 | |
| 880 | # Wait matching on log message |
| 881 | barrier b1 sync |
| 882 | |
| 883 | client c42 -connect ${h1_fe_sock} { |
| 884 | txreq \ |
| 885 | -req "GET" \ |
| 886 | -url "http://hostname:81" \ |
| 887 | -hdr "host: hostname:81" |
| 888 | |
| 889 | rxresp |
| 890 | expect resp.status == 200 |
| 891 | } -run |
| 892 | |
| 893 | # Wait matching on log message |
| 894 | barrier b1 sync |
| 895 | |
| 896 | client c43 -connect ${h1_fe_sock} { |
| 897 | txreq \ |
| 898 | -req "GET" \ |
| 899 | -url "https://hostname:444" \ |
| 900 | -hdr "host: hostname:444" |
| 901 | |
| 902 | rxresp |
| 903 | expect resp.status == 200 |
| 904 | } -run |
| 905 | |
Christopher Faulet | 3f5fbe9 | 2022-07-05 14:50:17 +0200 | [diff] [blame] | 906 | syslog S1 -wait |