Answer the question
In order to leave comments, you need to log in
How to parse http request when working with fastCGI?
Hello dear Toaster! And here again I need your help.
There is a C++ program on Linux that should work with HTTP requests. After reading an article from Habr Web application in C / C ++ using FastCGI , I decided to make a bunch of nginx + fcgi using the libfcgi.lib library. Everything seemed to work, but now the question is how to process the http request in the program itself?
What do you need? Let's say we have a GET request
mysite.ru/model/submodel?param1=value1¶m2=value2
FCGX_GetParam("REQUEST_METHOD", request.envp)
Answer the question
In order to leave comments, you need to log in
Of course implemented. It's called an http server, and there are plenty of them, to put it mildly.
The most common are apache and nginx. It's probably an overkill for your purposes, but now that you know what "it" is called, I think you'll be able to pick up something.
There are also separate http libraries .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question