C
C
CNNRNN2020-02-06 10:37:32
Parsing
CNNRNN, 2020-02-06 10:37:32

How to parse HTTP Requests/Responses at the byte level?

Can you share your experience on how to parse the byte array coming from the browser.
Right now I'm splitting the data into start line, headers and body by looking for the character "\n" .
In the same way, I separate the start line into a method, uri, HTTP version.
The code is very large.
I will be grateful for any help.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Gornostaev, 2020-02-06
@sergey-gornostaev

Low level code and should be big.

X
xmoonlight, 2020-02-06
@xmoonlight

regex

S
Sergey Shvyrev, 2020-02-12
@CellycoMobiles

I immediately wanted to offer Netty as a solution, but you are parsing information from the browser. Can you please clarify what you mean by chrome extension?
Thank you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question