path: tests/fixtures/llhttp/request/connect-request-with-caps.yml
name: CONNECT Request With CAPS
checked: true
source:
  path: test/request/method.md
  line: 62
meta:
  type: request
input:
- CONNECT HOME0.NETSCAPE.COM:443 HTTP/1.0
- 'User-agent: Mozilla/1.1N'
- 'Proxy-authorization: basic aGVsbG86d29ybGQ='
- ''
- ''
llhttp:
- off=0 message begin
- off=0 len=7 span[method]="CONNECT"
- off=7 method complete
- off=8 len=22 span[url]="HOME0.NETSCAPE.COM:443"
- off=31 url complete
- off=31 len=4 span[protocol]="HTTP"
- off=35 protocol complete
- off=36 len=3 span[version]="1.0"
- off=39 version complete
- off=41 len=10 span[header_field]="User-agent"
- off=52 header_field complete
- off=53 len=12 span[header_value]="Mozilla/1.1N"
- off=67 header_value complete
- off=67 len=19 span[header_field]="Proxy-authorization"
- off=87 header_field complete
- off=88 len=22 span[header_value]="basic aGVsbG86d29ybGQ="
- off=112 header_value complete
- off=114 headers complete method=5 v=1/0 flags=0 content_length=0
- off=114 message complete
- off=114 error code=22 reason="Pause on CONNECT/Upgrade"
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: error
  payload:
    code: UNEXPECTED_CHARACTER
    description: Invalid protocol
