path: tests/fixtures/llhttp/request/curl-get.yml
name: Curl GET
checked: true
source:
  path: test/request/sample.md
  line: 67
meta:
  type: request
input:
- GET /test HTTP/1.1
- 'User-Agent: curl/7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.1'
- 'Host: 0.0.0.0=5000'
- 'Accept: */*'
- ''
- ''
llhttp:
- off=0 message begin
- off=0 len=3 span[method]="GET"
- off=3 method complete
- off=4 len=5 span[url]="/test"
- off=10 url complete
- off=10 len=4 span[protocol]="HTTP"
- off=14 protocol complete
- off=15 len=3 span[version]="1.1"
- off=18 version complete
- off=20 len=10 span[header_field]="User-Agent"
- off=31 header_field complete
- off=32 len=85 span[header_value]="curl/7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.1"
- off=119 header_value complete
- off=119 len=4 span[header_field]="Host"
- off=124 header_field complete
- off=125 len=12 span[header_value]="0.0.0.0=5000"
- off=139 header_value complete
- off=139 len=6 span[header_field]="Accept"
- off=146 header_field complete
- off=147 len=3 span[header_value]="*/*"
- off=152 header_value complete
- off=154 headers complete method=1 v=1/1 flags=0 content_length=0
- off=154 message complete
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: method
  payload: GET
- offset: 4
  type: url
  payload: /test
- offset: 10
  type: protocol
  payload: HTTP
- offset: 15
  type: version
  payload: '1.1'
- offset: 20
  type: header_name
  payload: User-Agent
- offset: 32
  type: header_value
  payload: curl/7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.1
- offset: 119
  type: header_name
  payload: Host
- offset: 125
  type: header_value
  payload: 0.0.0.0=5000
- offset: 139
  type: header_name
  payload: Accept
- offset: 147
  type: header_value
  payload: '*/*'
- offset: 154
  type: headers
  payload:
    method: GET
    status: null
    url: /test
    protocol: HTTP
    version: '1.1'
    body: null
- offset: 154
  type: complete
  payload: null
