| 1 |
Methods |
| 2 |
======= |
| 3 |
|
| 4 |
### REPORT request |
| 5 |
|
| 6 |
<!-- meta={"type": "request"} --> |
| 7 |
```http |
| 8 |
REPORT /test HTTP/1.1 |
| 9 |
|
| 10 |
|
| 11 |
``` |
| 12 |
|
| 13 |
```log |
| 14 |
off=0 message begin |
| 15 |
off=0 len=6 span[method]="REPORT" |
| 16 |
off=6 method complete |
| 17 |
off=7 len=5 span[url]="/test" |
| 18 |
off=13 url complete |
| 19 |
off=18 len=3 span[version]="1.1" |
| 20 |
off=21 version complete |
| 21 |
off=25 headers complete method=20 v=1/1 flags=0 content_length=0 |
| 22 |
off=25 message complete |
| 23 |
``` |
| 24 |
|
| 25 |
### CONNECT request |
| 26 |
|
| 27 |
<!-- meta={"type": "request"} --> |
| 28 |
```http |
| 29 |
CONNECT 0-home0.netscape.com:443 HTTP/1.0 |
| 30 |
User-agent: Mozilla/1.1N |
| 31 |
Proxy-authorization: basic aGVsbG86d29ybGQ= |
| 32 |
|
| 33 |
some data |
| 34 |
and yet even more data |
| 35 |
``` |
| 36 |
|
| 37 |
```log |
| 38 |
off=0 message begin |
| 39 |
off=0 len=7 span[method]="CONNECT" |
| 40 |
off=7 method complete |
| 41 |
off=8 len=24 span[url]="0-home0.netscape.com:443" |
| 42 |
off=33 url complete |
| 43 |
off=38 len=3 span[version]="1.0" |
| 44 |
off=41 version complete |
| 45 |
off=43 len=10 span[header_field]="User-agent" |
| 46 |
off=54 header_field complete |
| 47 |
off=55 len=12 span[header_value]="Mozilla/1.1N" |
| 48 |
off=69 header_value complete |
| 49 |
off=69 len=19 span[header_field]="Proxy-authorization" |
| 50 |
off=89 header_field complete |
| 51 |
off=90 len=22 span[header_value]="basic aGVsbG86d29ybGQ=" |
| 52 |
off=114 header_value complete |
| 53 |
off=116 headers complete method=5 v=1/0 flags=0 content_length=0 |
| 54 |
off=116 message complete |
| 55 |
off=116 error code=22 reason="Pause on CONNECT/Upgrade" |
| 56 |
``` |
| 57 |
|
| 58 |
### CONNECT request with CAPS |
| 59 |
|
| 60 |
<!-- meta={"type": "request"} --> |
| 61 |
```http |
| 62 |
CONNECT HOME0.NETSCAPE.COM:443 HTTP/1.0 |
| 63 |
User-agent: Mozilla/1.1N |
| 64 |
Proxy-authorization: basic aGVsbG86d29ybGQ= |
| 65 |
|
| 66 |
|
| 67 |
``` |
| 68 |
|
| 69 |
```log |
| 70 |
off=0 message begin |
| 71 |
off=0 len=7 span[method]="CONNECT" |
| 72 |
off=7 method complete |
| 73 |
off=8 len=22 span[url]="HOME0.NETSCAPE.COM:443" |
| 74 |
off=31 url complete |
| 75 |
off=36 len=3 span[version]="1.0" |
| 76 |
off=39 version complete |
| 77 |
off=41 len=10 span[header_field]="User-agent" |
| 78 |
off=52 header_field complete |
| 79 |
off=53 len=12 span[header_value]="Mozilla/1.1N" |
| 80 |
off=67 header_value complete |
| 81 |
off=67 len=19 span[header_field]="Proxy-authorization" |
| 82 |
off=87 header_field complete |
| 83 |
off=88 len=22 span[header_value]="basic aGVsbG86d29ybGQ=" |
| 84 |
off=112 header_value complete |
| 85 |
off=114 headers complete method=5 v=1/0 flags=0 content_length=0 |
| 86 |
off=114 message complete |
| 87 |
off=114 error code=22 reason="Pause on CONNECT/Upgrade" |
| 88 |
``` |
| 89 |
|
| 90 |
### CONNECT with body |
| 91 |
|
| 92 |
<!-- meta={"type": "request"} --> |
| 93 |
```http |
| 94 |
CONNECT foo.bar.com:443 HTTP/1.0 |
| 95 |
User-agent: Mozilla/1.1N |
| 96 |
Proxy-authorization: basic aGVsbG86d29ybGQ= |
| 97 |
Content-Length: 10 |
| 98 |
|
| 99 |
blarfcicle" |
| 100 |
``` |
| 101 |
|
| 102 |
```log |
| 103 |
off=0 message begin |
| 104 |
off=0 len=7 span[method]="CONNECT" |
| 105 |
off=7 method complete |
| 106 |
off=8 len=15 span[url]="foo.bar.com:443" |
| 107 |
off=24 url complete |
| 108 |
off=29 len=3 span[version]="1.0" |
| 109 |
off=32 version complete |
| 110 |
off=34 len=10 span[header_field]="User-agent" |
| 111 |
off=45 header_field complete |
| 112 |
off=46 len=12 span[header_value]="Mozilla/1.1N" |
| 113 |
off=60 header_value complete |
| 114 |
off=60 len=19 span[header_field]="Proxy-authorization" |
| 115 |
off=80 header_field complete |
| 116 |
off=81 len=22 span[header_value]="basic aGVsbG86d29ybGQ=" |
| 117 |
off=105 header_value complete |
| 118 |
off=105 len=14 span[header_field]="Content-Length" |
| 119 |
off=120 header_field complete |
| 120 |
off=121 len=2 span[header_value]="10" |
| 121 |
off=125 header_value complete |
| 122 |
off=127 headers complete method=5 v=1/0 flags=20 content_length=10 |
| 123 |
off=127 message complete |
| 124 |
off=127 error code=22 reason="Pause on CONNECT/Upgrade" |
| 125 |
``` |
| 126 |
|
| 127 |
### M-SEARCH request |
| 128 |
|
| 129 |
<!-- meta={"type": "request"} --> |
| 130 |
```http |
| 131 |
M-SEARCH * HTTP/1.1 |
| 132 |
HOST: 239.255.255.250:1900 |
| 133 |
MAN: "ssdp:discover" |
| 134 |
ST: "ssdp:all" |
| 135 |
|
| 136 |
|
| 137 |
``` |
| 138 |
|
| 139 |
```log |
| 140 |
off=0 message begin |
| 141 |
off=0 len=8 span[method]="M-SEARCH" |
| 142 |
off=8 method complete |
| 143 |
off=9 len=1 span[url]="*" |
| 144 |
off=11 url complete |
| 145 |
off=16 len=3 span[version]="1.1" |
| 146 |
off=19 version complete |
| 147 |
off=21 len=4 span[header_field]="HOST" |
| 148 |
off=26 header_field complete |
| 149 |
off=27 len=20 span[header_value]="239.255.255.250:1900" |
| 150 |
off=49 header_value complete |
| 151 |
off=49 len=3 span[header_field]="MAN" |
| 152 |
off=53 header_field complete |
| 153 |
off=54 len=15 span[header_value]=""ssdp:discover"" |
| 154 |
off=71 header_value complete |
| 155 |
off=71 len=2 span[header_field]="ST" |
| 156 |
off=74 header_field complete |
| 157 |
off=75 len=10 span[header_value]=""ssdp:all"" |
| 158 |
off=87 header_value complete |
| 159 |
off=89 headers complete method=24 v=1/1 flags=0 content_length=0 |
| 160 |
off=89 message complete |
| 161 |
``` |
| 162 |
|
| 163 |
### PATCH request |
| 164 |
|
| 165 |
<!-- meta={"type": "request"} --> |
| 166 |
```http |
| 167 |
PATCH /file.txt HTTP/1.1 |
| 168 |
Host: www.example.com |
| 169 |
Content-Type: application/example |
| 170 |
If-Match: "e0023aa4e" |
| 171 |
Content-Length: 10 |
| 172 |
|
| 173 |
cccccccccc |
| 174 |
``` |
| 175 |
|
| 176 |
```log |
| 177 |
off=0 message begin |
| 178 |
off=0 len=5 span[method]="PATCH" |
| 179 |
off=5 method complete |
| 180 |
off=6 len=9 span[url]="/file.txt" |
| 181 |
off=16 url complete |
| 182 |
off=21 len=3 span[version]="1.1" |
| 183 |
off=24 version complete |
| 184 |
off=26 len=4 span[header_field]="Host" |
| 185 |
off=31 header_field complete |
| 186 |
off=32 len=15 span[header_value]="www.example.com" |
| 187 |
off=49 header_value complete |
| 188 |
off=49 len=12 span[header_field]="Content-Type" |
| 189 |
off=62 header_field complete |
| 190 |
off=63 len=19 span[header_value]="application/example" |
| 191 |
off=84 header_value complete |
| 192 |
off=84 len=8 span[header_field]="If-Match" |
| 193 |
off=93 header_field complete |
| 194 |
off=94 len=11 span[header_value]=""e0023aa4e"" |
| 195 |
off=107 header_value complete |
| 196 |
off=107 len=14 span[header_field]="Content-Length" |
| 197 |
off=122 header_field complete |
| 198 |
off=123 len=2 span[header_value]="10" |
| 199 |
off=127 header_value complete |
| 200 |
off=129 headers complete method=28 v=1/1 flags=20 content_length=10 |
| 201 |
off=129 len=10 span[body]="cccccccccc" |
| 202 |
off=139 message complete |
| 203 |
``` |
| 204 |
|
| 205 |
### PURGE request |
| 206 |
|
| 207 |
<!-- meta={"type": "request"} --> |
| 208 |
```http |
| 209 |
PURGE /file.txt HTTP/1.1 |
| 210 |
Host: www.example.com |
| 211 |
|
| 212 |
|
| 213 |
``` |
| 214 |
|
| 215 |
```log |
| 216 |
off=0 message begin |
| 217 |
off=0 len=5 span[method]="PURGE" |
| 218 |
off=5 method complete |
| 219 |
off=6 len=9 span[url]="/file.txt" |
| 220 |
off=16 url complete |
| 221 |
off=21 len=3 span[version]="1.1" |
| 222 |
off=24 version complete |
| 223 |
off=26 len=4 span[header_field]="Host" |
| 224 |
off=31 header_field complete |
| 225 |
off=32 len=15 span[header_value]="www.example.com" |
| 226 |
off=49 header_value complete |
| 227 |
off=51 headers complete method=29 v=1/1 flags=0 content_length=0 |
| 228 |
off=51 message complete |
| 229 |
``` |
| 230 |
|
| 231 |
### SEARCH request |
| 232 |
|
| 233 |
<!-- meta={"type": "request"} --> |
| 234 |
```http |
| 235 |
SEARCH / HTTP/1.1 |
| 236 |
Host: www.example.com |
| 237 |
|
| 238 |
|
| 239 |
``` |
| 240 |
|
| 241 |
```log |
| 242 |
off=0 message begin |
| 243 |
off=0 len=6 span[method]="SEARCH" |
| 244 |
off=6 method complete |
| 245 |
off=7 len=1 span[url]="/" |
| 246 |
off=9 url complete |
| 247 |
off=14 len=3 span[version]="1.1" |
| 248 |
off=17 version complete |
| 249 |
off=19 len=4 span[header_field]="Host" |
| 250 |
off=24 header_field complete |
| 251 |
off=25 len=15 span[header_value]="www.example.com" |
| 252 |
off=42 header_value complete |
| 253 |
off=44 headers complete method=14 v=1/1 flags=0 content_length=0 |
| 254 |
off=44 message complete |
| 255 |
``` |
| 256 |
|
| 257 |
### LINK request |
| 258 |
|
| 259 |
<!-- meta={"type": "request"} --> |
| 260 |
```http |
| 261 |
LINK /images/my_dog.jpg HTTP/1.1 |
| 262 |
Host: example.com |
| 263 |
Link: <http://example.com/profiles/joe>; rel="tag" |
| 264 |
Link: <http://example.com/profiles/sally>; rel="tag" |
| 265 |
|
| 266 |
|
| 267 |
``` |
| 268 |
|
| 269 |
```log |
| 270 |
off=0 message begin |
| 271 |
off=0 len=4 span[method]="LINK" |
| 272 |
off=4 method complete |
| 273 |
off=5 len=18 span[url]="/images/my_dog.jpg" |
| 274 |
off=24 url complete |
| 275 |
off=29 len=3 span[version]="1.1" |
| 276 |
off=32 version complete |
| 277 |
off=34 len=4 span[header_field]="Host" |
| 278 |
off=39 header_field complete |
| 279 |
off=40 len=11 span[header_value]="example.com" |
| 280 |
off=53 header_value complete |
| 281 |
off=53 len=4 span[header_field]="Link" |
| 282 |
off=58 header_field complete |
| 283 |
off=59 len=44 span[header_value]="<http://example.com/profiles/joe>; rel="tag"" |
| 284 |
off=105 header_value complete |
| 285 |
off=105 len=4 span[header_field]="Link" |
| 286 |
off=110 header_field complete |
| 287 |
off=111 len=46 span[header_value]="<http://example.com/profiles/sally>; rel="tag"" |
| 288 |
off=159 header_value complete |
| 289 |
off=161 headers complete method=31 v=1/1 flags=0 content_length=0 |
| 290 |
off=161 message complete |
| 291 |
``` |
| 292 |
|
| 293 |
### LINK request |
| 294 |
|
| 295 |
<!-- meta={"type": "request"} --> |
| 296 |
```http |
| 297 |
UNLINK /images/my_dog.jpg HTTP/1.1 |
| 298 |
Host: example.com |
| 299 |
Link: <http://example.com/profiles/sally>; rel="tag" |
| 300 |
|
| 301 |
|
| 302 |
``` |
| 303 |
|
| 304 |
```log |
| 305 |
off=0 message begin |
| 306 |
off=0 len=6 span[method]="UNLINK" |
| 307 |
off=6 method complete |
| 308 |
off=7 len=18 span[url]="/images/my_dog.jpg" |
| 309 |
off=26 url complete |
| 310 |
off=31 len=3 span[version]="1.1" |
| 311 |
off=34 version complete |
| 312 |
off=36 len=4 span[header_field]="Host" |
| 313 |
off=41 header_field complete |
| 314 |
off=42 len=11 span[header_value]="example.com" |
| 315 |
off=55 header_value complete |
| 316 |
off=55 len=4 span[header_field]="Link" |
| 317 |
off=60 header_field complete |
| 318 |
off=61 len=46 span[header_value]="<http://example.com/profiles/sally>; rel="tag"" |
| 319 |
off=109 header_value complete |
| 320 |
off=111 headers complete method=32 v=1/1 flags=0 content_length=0 |
| 321 |
off=111 message complete |
| 322 |
``` |
| 323 |
|
| 324 |
### SOURCE request |
| 325 |
|
| 326 |
<!-- meta={"type": "request"} --> |
| 327 |
```http |
| 328 |
SOURCE /music/sweet/music HTTP/1.1 |
| 329 |
Host: example.com |
| 330 |
|
| 331 |
|
| 332 |
``` |
| 333 |
|
| 334 |
```log |
| 335 |
off=0 message begin |
| 336 |
off=0 len=6 span[method]="SOURCE" |
| 337 |
off=6 method complete |
| 338 |
off=7 len=18 span[url]="/music/sweet/music" |
| 339 |
off=26 url complete |
| 340 |
off=31 len=3 span[version]="1.1" |
| 341 |
off=34 version complete |
| 342 |
off=36 len=4 span[header_field]="Host" |
| 343 |
off=41 header_field complete |
| 344 |
off=42 len=11 span[header_value]="example.com" |
| 345 |
off=55 header_value complete |
| 346 |
off=57 headers complete method=33 v=1/1 flags=0 content_length=0 |
| 347 |
off=57 message complete |
| 348 |
``` |
| 349 |
|
| 350 |
### SOURCE request with ICE |
| 351 |
|
| 352 |
<!-- meta={"type": "request"} --> |
| 353 |
```http |
| 354 |
SOURCE /music/sweet/music ICE/1.0 |
| 355 |
Host: example.com |
| 356 |
|
| 357 |
|
| 358 |
``` |
| 359 |
|
| 360 |
```log |
| 361 |
off=0 message begin |
| 362 |
off=0 len=6 span[method]="SOURCE" |
| 363 |
off=6 method complete |
| 364 |
off=7 len=18 span[url]="/music/sweet/music" |
| 365 |
off=26 url complete |
| 366 |
off=30 len=3 span[version]="1.0" |
| 367 |
off=33 version complete |
| 368 |
off=35 len=4 span[header_field]="Host" |
| 369 |
off=40 header_field complete |
| 370 |
off=41 len=11 span[header_value]="example.com" |
| 371 |
off=54 header_value complete |
| 372 |
off=56 headers complete method=33 v=1/0 flags=0 content_length=0 |
| 373 |
off=56 message complete |
| 374 |
``` |
| 375 |
|
| 376 |
### OPTIONS request with RTSP |
| 377 |
|
| 378 |
NOTE: `OPTIONS` is a valid HTTP metho too. |
| 379 |
|
| 380 |
<!-- meta={"type": "request"} --> |
| 381 |
```http |
| 382 |
OPTIONS /music/sweet/music RTSP/1.0 |
| 383 |
Host: example.com |
| 384 |
|
| 385 |
|
| 386 |
``` |
| 387 |
|
| 388 |
```log |
| 389 |
off=0 message begin |
| 390 |
off=0 len=7 span[method]="OPTIONS" |
| 391 |
off=7 method complete |
| 392 |
off=8 len=18 span[url]="/music/sweet/music" |
| 393 |
off=27 url complete |
| 394 |
off=32 len=3 span[version]="1.0" |
| 395 |
off=35 version complete |
| 396 |
off=37 len=4 span[header_field]="Host" |
| 397 |
off=42 header_field complete |
| 398 |
off=43 len=11 span[header_value]="example.com" |
| 399 |
off=56 header_value complete |
| 400 |
off=58 headers complete method=6 v=1/0 flags=0 content_length=0 |
| 401 |
off=58 message complete |
| 402 |
``` |
| 403 |
|
| 404 |
### ANNOUNCE request with RTSP |
| 405 |
|
| 406 |
<!-- meta={"type": "request"} --> |
| 407 |
```http |
| 408 |
ANNOUNCE /music/sweet/music RTSP/1.0 |
| 409 |
Host: example.com |
| 410 |
|
| 411 |
|
| 412 |
``` |
| 413 |
|
| 414 |
```log |
| 415 |
off=0 message begin |
| 416 |
off=0 len=8 span[method]="ANNOUNCE" |
| 417 |
off=8 method complete |
| 418 |
off=9 len=18 span[url]="/music/sweet/music" |
| 419 |
off=28 url complete |
| 420 |
off=33 len=3 span[version]="1.0" |
| 421 |
off=36 version complete |
| 422 |
off=38 len=4 span[header_field]="Host" |
| 423 |
off=43 header_field complete |
| 424 |
off=44 len=11 span[header_value]="example.com" |
| 425 |
off=57 header_value complete |
| 426 |
off=59 headers complete method=36 v=1/0 flags=0 content_length=0 |
| 427 |
off=59 message complete |
| 428 |
``` |
| 429 |
|
| 430 |
### PRI request HTTP2 |
| 431 |
|
| 432 |
<!-- meta={"type": "request"} --> |
| 433 |
```http |
| 434 |
PRI * HTTP/1.1 |
| 435 |
|
| 436 |
SM |
| 437 |
|
| 438 |
|
| 439 |
``` |
| 440 |
|
| 441 |
```log |
| 442 |
off=0 message begin |
| 443 |
off=0 len=3 span[method]="PRI" |
| 444 |
off=3 method complete |
| 445 |
off=4 len=1 span[url]="*" |
| 446 |
off=6 url complete |
| 447 |
off=11 len=3 span[version]="1.1" |
| 448 |
off=14 version complete |
| 449 |
off=24 error code=23 reason="Pause on PRI/Upgrade" |
| 450 |
``` |
| 451 |
|
| 452 |
### QUERY request |
| 453 |
|
| 454 |
<!-- meta={"type": "request"} --> |
| 455 |
```http |
| 456 |
QUERY /contacts HTTP/1.1 |
| 457 |
Host: example.org |
| 458 |
Content-Type: example/query |
| 459 |
Accept: text/csv |
| 460 |
Content-Length: 41 |
| 461 |
|
| 462 |
select surname, givenname, email limit 10 |
| 463 |
``` |
| 464 |
|
| 465 |
```log |
| 466 |
off=0 message begin |
| 467 |
off=0 len=5 span[method]="QUERY" |
| 468 |
off=5 method complete |
| 469 |
off=6 len=9 span[url]="/contacts" |
| 470 |
off=16 url complete |
| 471 |
off=21 len=3 span[version]="1.1" |
| 472 |
off=24 version complete |
| 473 |
off=26 len=4 span[header_field]="Host" |
| 474 |
off=31 header_field complete |
| 475 |
off=32 len=11 span[header_value]="example.org" |
| 476 |
off=45 header_value complete |
| 477 |
off=45 len=12 span[header_field]="Content-Type" |
| 478 |
off=58 header_field complete |
| 479 |
off=59 len=13 span[header_value]="example/query" |
| 480 |
off=74 header_value complete |
| 481 |
off=74 len=6 span[header_field]="Accept" |
| 482 |
off=81 header_field complete |
| 483 |
off=82 len=8 span[header_value]="text/csv" |
| 484 |
off=92 header_value complete |
| 485 |
off=92 len=14 span[header_field]="Content-Length" |
| 486 |
off=107 header_field complete |
| 487 |
off=108 len=2 span[header_value]="41" |
| 488 |
off=112 header_value complete |
| 489 |
off=114 headers complete method=46 v=1/1 flags=20 content_length=41 |
| 490 |
off=114 len=41 span[body]="select surname, givenname, email limit 10" |
| 491 |
off=155 message complete |
| 492 |
``` |