Http 192.168.l.65

0 views
Skip to first unread message

Joy Wida

unread,
Aug 4, 2024, 7:26:23 PM8/4/24
to tensthepufha
Oneof the big questions I have is about header normalization, many http client frameworks perform header normalization which the http.request api explicitly does not. I assume that you have validated the contents of each request are identical other than the number of packets they are sent in?

While I understand your stance here as specifications are very important and supporting invalid interpretations of the spec can be potentially damaging to the specification itself, I do think we want to provide enough tools allow a developer to do what is needed.


To be clear I am not suggesting adjusting the http.request API to behave any differently than the documentation/original implementation indicates but instead as we attempt to evolve our platform we can take into account the needs of the community.


I can also confirm the same behavior with another device using wireshark and other http servers to examine raw data. The information sent by postman and the cosock http lua are almost identical (other than user agent and a trailer header), the big difference being that the lua call appears to be splitting the request into two tcp packets which is causing grief for the lan device (which I believe implements a lua http server internally). It would be awesome to have extension to the cosock lua library to send the request as a single packet.

3a8082e126
Reply all
Reply to author
Forward
0 new messages