Open shindoga opened 6 years ago
dont mind the the .show() function doesnt have \r\n it is just a copy issue from my terminal
i understood after further inspection is that the raw() function doesn't actually return the "raw" of the packet layer. if you compare between wireshark's result of the http layer to the raw() function's result it is clearly seen that the raw() function misses some \r\n
and therefore makes the HTTP function of it not compatible
The problem is when i do raw() function to a HTTP layer and than to the result i do HTTP() function to it the result is different from the original HTTP layer.
For simplisity,
HTTP(raw(pack)) == pack[HTTP]
returnsFalse
for example, pack[HTTP].show() prints
`###[ HTTP ]###
[ HTTP Response ]
and on the other hand
HTTP(raw(pack)).show()
prints`###[ HTTP ]###
[ HTTP Response ]
as u can see the Content-Length header is inncorrect, plz help thank you