develooper Front page | perl.perl6.users | Postings from May 2020

Help with grammar

Thread Next
From:
David Santiago
Date:
May 21, 2020 20:40
Subject:
Help with grammar
Message ID:
CAO5X0j58Yb5rj6P+dKkPfj9KbHs=d1ud8JyYNXVT0-Y=0nK_ig@mail.gmail.com
Hi!

Can someone explain me why my grammar isn't working? Unfortunately i
can't figure it out :-(

Full script attached (42 lines) - the new lines in the script are
always only "\n"

The output:

TOP
|  request-line
|  |  method
|  |  * MATCH "CONNECT"
|  |  request-uri
|  |  * MATCH "ssl.gstatic.com:443"
|  |  http-version
|  |  * MATCH "HTTP/1.1"
|  |  crlf
|  |  * MATCH "\n"
|  * MATCH "CONNECT ssl.gstatic.com:443 HTTP/1.1\n"
|  headers
|  |  header
|  |  * MATCH "Proxy-Connection"
|  |  header-value
|  |  * MATCH "keep-alive\n"
|  |  crlf
|  |  * FAIL
|  * FAIL
* FAIL
Nil


It matches the request line's newline but not the headers.


Best regards,
David Santiago

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About