Skip to content
Advertisement

Tag: cgi

How to implement seting up ssh tunneling to port… here? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

Need help on Nginx CGI Configuration

I need to set the nginx configurations such that the URL “http://host/cgi-bin/hw.sh/some/path/to/data/” should trigger the shell script “hw.sh” present under path “/usr/lib/cgi-bin/”. Now, according to the instructions mentioned in page https://www.howtoforge.com/serving-cgi-scripts-with-nginx-on-debian-squeeze-ubuntu-11.04-p3, we need to set the configurations under a “.vhost” file. But I have a default file already present under path “/etc/nginx/sites-available/default” instead of a .vhost file. And when I

How to handle 0 Content length in POST request in CGI?

In my CGI application something happens when I pass a 0 content length POST request. Here is my code: I test my application using the Http-Requester plugin for FireFox, when I pass a POST request with no data, the application seems like it enters a loop and no response. If I pass a GET request, the code works fine because

Advertisement