Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to find out that weather the site is CGI or Non-CGI?

CGI non-cgi site weather
0
Posted

How to find out that weather the site is CGI or Non-CGI?

0

You can sometimes tell by looking at the URL – if it includes /cgi-bin/ or .cgi, then you’re probably looking at a page generated by a program which is being run through CGI. (Remember that CGI is the “Common Gateway Interface” – it is *not* a language! CGI programs can be written in pretty much anything.) This is hardly reliable, though, as it’s not at all difficult to handle pathinfo-style URLs (e.g., http://mysite.com/do/something/1234) with CGI-based code if you so choose. If there isn’t an easy giveaway like that, though, calling and asking the person running the site is pretty much your only option. CGI programs simply print their output, then the web server catches it and sends it to the client (adding headers first if the CGI program didn’t include them in its output). There aren’t any special “this is a CGI application!” markers in the response headers or body which will make it obvious unless the program’s developer chooses to add them.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123