I want to find “\r\n\r\n” in a HTTP header.
I know it’s at the end of the packet, so if I reverse search “\r\n\r\n” I’ll get good performance.
Is there a function implement reverse search in C or C++ ?
If so, which one?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Reverse searching for “\r\n\r\n” might give you wrong result. It is not correct logic, because the HTTP body might contain “\r\n\r\n”.