Twisting tool for wsgi via unix dock

Is there a command line tool to send requests directly to a wsgi (django) application listening on a unix socket?

Equivalent:

curl -X GET http://example.org/index.html

But will this bypass the HTTP server and access the base application directly via wsgi?

+6
source share
2 answers

A Django application listening on a unix socket uses a different protocol than HTTP, most likely FastCGI. Thus, you cannot use the HTTP client to communicate directly with it.

Here you can find an article on how to use the cgi-fcgi command-line tool to chat directly with your application. The article uses php-fpm, but the concept is the same.

http://www.thatsgeeky.com/2012/02/directly-connecting-to-php-fpm/

0
source

I think you are looking for uwsgi_curl as described in this answer .

0
source

All Articles