<div dir="ltr">Nginx will need a valid header in order to know what to do with the request. Maybe you should look into the stream module instead.<div><br></div><div><a href="https://nginx.org/en/docs/stream/ngx_stream_core_module.html">https://nginx.org/en/docs/stream/ngx_stream_core_module.html</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 24, 2016 at 2:56 PM, Nattakorn S <span dir="ltr"><<a href="mailto:dragon_nat@hotmail.com" target="_blank">dragon_nat@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_-265548356654214625divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Dear all</p>
<p><br>
</p>
<p>I have electronic device and I config to send TCP/IP data to my server by raw data no http header.</p>
<p>My server use nginx with fastcgi for webserver and develop my application for get message from port 8080.</p>
<p>But nginx always response with error 400 with "<span>client sent invalid method while reading client request line</span>".</p>
<p>I know cause my <span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px">electronic device not have correct header in packet.</span></p>
<p><span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px">So I try add "<span>ignore_invalid_headers off;</span>" in http scope
but not work.</span></p>
<p><span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px">I need to bypass raw data to my application.</span></p>
<p><span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px"><br>
</span></p>
<p><span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px">Thank you.</span></p>
<p><br>
</p>
</div>
</div>
<br>______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br></blockquote></div><br></div>