Receive raw data

Nattakorn S dragon_nat at
Thu Oct 27 15:54:49 UTC 2016

Can I use http and stream like this

http {



stream {

in same nginx.conf

Thank you

From: nginx <nginx-bounces at> on behalf of Richard Stanway <r1ch+nginx at>
Sent: Monday, October 24, 2016 10:25 PM
To: nginx at
Subject: Re: Receive raw data

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.
Module ngx_stream_core_module -<>
Sets the address and port for the socket on which the server will accept connections. It is possible to specify just the port. The address can also be a hostname, for ...

On Mon, Oct 24, 2016 at 2:56 PM, Nattakorn S <dragon_nat at<mailto:dragon_nat at>> wrote:

Dear all

I have electronic device and I config to send TCP/IP data to my server by raw data no http header.

My server use nginx with fastcgi for webserver and develop my application for get message from port 8080.

But nginx always response with error 400 with "client sent invalid method while reading client request line".

I know cause my electronic device not have correct header in packet.

So I try add "ignore_invalid_headers off;" in http scope but not work.

I need to bypass raw data to my application.

Thank you.

nginx mailing list
nginx at<mailto:nginx at>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list