Receive raw data
Nattakorn S
dragon_nat at hotmail.com
Thu Oct 27 15:53:15 UTC 2016
Can I use http and stream in nginx.conf like this?
http {
.......
}
________________________________
From: nginx <nginx-bounces at nginx.org> on behalf of Richard Stanway <r1ch+nginx at teamliquid.net>
Sent: Monday, October 24, 2016 10:25 PM
To: nginx at nginx.org
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.
https://nginx.org/en/docs/stream/ngx_stream_core_module.html
Module ngx_stream_core_module - nginx.org<https://nginx.org/en/docs/stream/ngx_stream_core_module.html>
nginx.org
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 hotmail.com<mailto:dragon_nat at hotmail.com>> 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 nginx.org<mailto:nginx at nginx.org>
http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20161027/d0062d07/attachment.html>
More information about the nginx
mailing list