Nginx headers

Hi, there is a nginx server module nginx-push-stream-module, which locally allows to send post request to some url and the client via get subscribe to this information.

The problem is that I need to send an array of bytes, and after the get request will get the information like:

HTTP/1.1 200 OK<br> Server: nginx<br> Date: Fri, 13 Apr 2012 07:37:40 GMT<br> Content-Type: binary/octet-stream<br> Connection: close<br> Transfer-Encoding: chunked<br> <br / > BIARY DATA HERE

The question is how to disable sending these headers? Is it possible to explicitly specify that I stupidly send the set of bytes and I need to get them without any additional information?

In nginx configuration, I tried to register:
http {<br> gzip on;<br> server_tokens off;<br> default_type binary/octet-stream;<br> ...<br> server {<br> ...<br> chunked_transfer_encoding off;<br> push_stream_content_type "binary/octet-stream";<br> }<br> }
October 8th 19 at 00:17
2 answers
October 8th 19 at 00:19
October 8th 19 at 00:21
This is the HTTP Protocol, so that at least HTTP/1.1 200 OK\n\n you always get, other headers can be removed. I understand you have clients are not browsers? Try it in your client, just filter out the headers. The response body comes after \n\n
Well, as you can remove other headers? Clients will be very much, I would not want to send the headers. Yes, it receives not the browser, filter can, but was hoping to shut off. - Toy.Ziema commented on October 8th 19 at 00:24
That thought that with nginx there is a command to hide the headers, but I found it just to proxy_cache module ie for proxied content. So I think to hide all the headers, you can only dig deeper in the source code. - Velva_Wym commented on October 8th 19 at 00:27

Find more questions by tags * nix-like systemsNginx