Open zuoshui opened 6 years ago
Do you mean you want to map a specific path to execute a CGI binary?
Hi LordFokas, I want to setup a http server on android , which need support cgi, for example if user want to configure wifi on Another mobile, he want use CGI format ,like http://192.168.1.1:8080/setup.cgi?ssid=1234&psw=12345678, i want to known , does the Nanohttpd support CGI now?
what should i do if i want to support cgi in nanohttpd?
Alright, first things first, there's a set of unspoken rules in place. If I ask you a question, that means I'm spending some of my very limited time to help you. If you don't answer my questions I reserve myself the right to move on and use my time elsewhere.
But I'll give you another chance. Tell me this:
Do you WANT to map a path to execute a CGI? This means when a request hits that path forking the process, executing a CGI binary with a set of cmdline arguments and then returning whatever the binary gives you back. This would be especially hard to accomplish in an Android environment, if none of this seems familiar to you then you are either trying to do something else or going in waaaayyyy over your head.
Do you just want to have a .cgi extension in the resource path, and to execute some Java code when it hits? This is trivial and already in place.
Do you even know what a Common Gateway Interface is and how it works? Because so far I don't think you have a clue about anything you've asked me and until you help me figure out what it is you actually want I cannot help you achieve that.
Before you answer me you should probably take the time to research whatever it is in my questions you don't know about. If you just keep asking about "CGI support" without actually stating what you want to accomplish I'll have to close this and move on.
Hi , I have a question to ask, does nanohttpd server support CGI? for example http://192.168.1.1:8080/setup.cgi?ssid=1234&psw=12345678