HTTP bad request. NULL CRLF in the headers

1.6k views Asked by At

I have a HTTP request which is failing with 400 error. I did packet capture and found that in the request headers there is header like below: X-Policy: NX\000\r\n

So it looks like NULL character and then CRLF what most likely mean end of message headers and start of message body. Since this is not the last header I'm getting 400.

Question 1: Is my guess correct about cause of 400 error? Question 2: is this behavior is per a RFC? If so can you please give the RFC number.

Thanks.

1

There are 1 answers

0
Julian Reschke On