योग्य उत्तर: पर्याय (3) CGI (Common Gateway Interface)
स्पष्टीकरण:
वेब सर्व्हरवर बाहेरील प्रोग्रॅम्स चालवून ब्राऊझर आणि सर्व्हर-साईड प्रोग्रॅम्स यांच्यात संवाद घडवून आणण्यासाठी प्रमाणित मानली जाणारी यंत्रणा म्हणजे CGI (Common Gateway Interface) होय:
•
CGI चे कार्य:
•
जेव्हा एखादा वापरकर्ता वेबपेजवरील फॉर्म भरून सबमिट करतो (GET किंवा POST पद्धतीद्वारे), तेव्हा वेब सर्व्हर तो डेटा CGI प्रोग्रॅमकडे (उदा. Perl, C, C++, Python मधील स्क्रिप्ट) पाठवतो.
•
हा डेटा पाठवण्यासाठी सर्व्हर पर्यावरण परिवर्तींचा (Environment Variables) आणि स्टँडर्ड इनपुटचा (stdin) वापर करतो.
•
CGI प्रोग्रॅम त्या डेटावर प्रक्रिया करतो (उदा. डेटाबेसमध्ये नोंद करणे) आणि योग्य HTTP हेडरसह (उदा. `Content-Type: text/html`) तयार केलेले निकाल वेब सर्व्हरमार्फत ब्राऊझरकडे परत पाठवतो.
•
इतर पर्याय:
•
*ASP / JSP:* मायक्रोसॉफ्ट आणि जावाच्या आधुनिक सर्व्हर-साईड स्क्रिप्टिंग तंत्रज्ञानाचे प्रकार.
•
*HTML:* केवळ वेबपेजची रचना करणारी मार्कअप भाषा.
CGI ची निर्मिती 1993 मध्ये NCSA (National Center for Supercomputing Applications) द्वारे वेब सर्व्हरला अधिक गतिमान (Dynamic) बनवण्यासाठी करण्यात आली होती.
translate
English Explanation / स्पष्टीकरण:
Correct Answer: Option (3) CGI
Explanation:
The standard protocol specification that enables a web server to communicate with external application scripts using HTTP request methods (GET/POST) and environment variables is CGI (Common Gateway Interface):
•
Operational Mechanism of CGI:
•
When a client submits an HTML form via HTTP GET or POST, the web server executes a designated CGI program (written in languages like Perl, C, or Python).
•
The server passes request metadata through environment variables (e.g., `QUERY_STRING`, `REQUEST_METHOD`, `REMOTE_ADDR`) and user data through standard input (`stdin`).
•
The CGI executable processes the transaction and writes standard output (`stdout`) incorporating appropriate HTTP headers (e.g., `Content-Type: text/html; charset=utf-8`) back to the web server, which routes it to the client browser.
•
Other technologies:
•
*ASP (Active Server Pages) & JSP (JavaServer Pages):* Server-side scripting frameworks that embed code directly inside HTML.
•
*HTML:* Static document formatting markup.
CGI was developed in 1993 by the NCSA (National Center for Supercomputing Applications) for the NCSA HTTPd web server to enable dynamic content generation.