Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

HTTP 0.9 and automatic connection closing with Nginx

$
0
0
Hi
I am using a GSM modem as client and want to treat the requests as HTTP 0.9. This is a resource constrained device and I just want to push some data.= online.

Earlier I was working with Glassfish V4 and if you just send a GET without headers, e,g,
GET /api/endpoint?from=gl868&data=....
Then the request is treated as HTTP 0.9 and I get a 200 OK response.

However when I try the same thing with Nginx, without the HTTP version, I get a 404. Then I also have to include a Host header to get 200 OK. is there a way to configure Nginx to treat such requests as HTTP 0.9? what are my other options for closing the connection automatically after each request without keep-alives?

Thanks

/rajeev

Viewing all articles
Browse latest Browse all 4759

Trending Articles