Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

End HTTP requests with '\r\n\r\n' or '\n\n'

Tags:

scapy

I have seen both '\r\n\r\n' and '\n\n' used in http://www.secdev.org/projects/scapy/demo.html, but I am not sure which to use. If I end my HTTP request with '\r\n\r\n', I get 'Continuation or non-HTTP traffic' when I inspect the http packets in Wireshark.

like image 355
hch Avatar asked Dec 31 '25 06:12

hch


1 Answers

I think you should use '\r\n\r\n' instead of '\n\n' since that is the HTTP standard. The web server might just being lenient in accepting '\n\n'.

like image 52
crhuang Avatar answered Jan 03 '26 14:01

crhuang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!