Share
VIDEOS 1 TO 50
CGI: What is CGI? | lynda.com
CGI: What is CGI? | lynda.com
Published: 2012/10/02
Channel: LinkedIn Learning Solutions
Python 101 - CGI
Python 101 - CGI
Published: 2014/01/27
Channel: howCode
Use C++ as a Server Side Language (CGI Common Gateway Interface)
Use C++ as a Server Side Language (CGI Common Gateway Interface)
Published: 2016/12/22
Channel: RobotZer0
Python Advanced Tutorial 7 - CGI Programming
Python Advanced Tutorial 7 - CGI Programming
Published: 2014/06/05
Channel: DrapsTV
Java Advanced 1- CGI architecture for beginners
Java Advanced 1- CGI architecture for beginners
Published: 2012/06/19
Channel: Shashi Shekhar
Lecture -19 CGI Scripts
Lecture -19 CGI Scripts
Published: 2008/08/07
Channel: nptelhrd
Learning Apache http server - Executing CGI scripts
Learning Apache http server - Executing CGI scripts
Published: 2013/01/16
Channel: theurbanpenguin
Common Gateway Interface
Common Gateway Interface
Published: 2014/08/17
Channel: Audiopedia
Common Gateway Interface
Common Gateway Interface
Published: 2015/08/21
Channel: Volodya Mozhenkov
Python CGI Scripting
Python CGI Scripting
Published: 2015/07/07
Channel: Amit Sharma
Server Side Script Setup - CGI Webserver with Python - Linux Tutorials
Server Side Script Setup - CGI Webserver with Python - Linux Tutorials
Published: 2014/12/18
Channel: Kris Occhipinti
CGI Programming in C Tutorial using Raspberry PI with Linux
CGI Programming in C Tutorial using Raspberry PI with Linux
Published: 2015/09/30
Channel: ShellWaveX
Led controlling via CGI script on Raspberry Pi
Led controlling via CGI script on Raspberry Pi
Published: 2015/09/12
Channel: kro
Common Gateway Interface (CGI)
Common Gateway Interface (CGI)
Published: 2015/01/28
Channel: Others Channel
Python Web Programming using CGI
Python Web Programming using CGI
Published: 2017/06/07
Channel: NetSecProf
How to Configure Apache2 to use Python as CGI scripts
How to Configure Apache2 to use Python as CGI scripts
Published: 2016/12/15
Channel: Quick Notepad Tutorial
Advantage of Servlet over Cgi Technology | Servlet Tutorial  | javatutoronline.com
Advantage of Servlet over Cgi Technology | Servlet Tutorial | javatutoronline.com
Published: 2014/02/28
Channel: Chinmay Patel
joburg cgi simple test
joburg cgi simple test
Published: 2014/03/04
Channel: Beni Don
Python CGI Server  Made simple
Python CGI Server Made simple
Published: 2014/01/13
Channel: george boole
Python3 Advanced Tutorial 7 - CGI Programming
Python3 Advanced Tutorial 7 - CGI Programming
Published: 2015/06/25
Channel: DrapsTV
Apache CGI BIN C programing tutorial
Apache CGI BIN C programing tutorial
Published: 2017/05/04
Channel: Kris Occhipinti
09 10 Writing A Form For CGI PT3 | C Tutorial
09 10 Writing A Form For CGI PT3 | C Tutorial
Published: 2015/02/20
Channel: Free Engineering Lectures
22. Connecting the Contact Us Form to a CGI script
22. Connecting the Contact Us Form to a CGI script
Published: 2013/03/25
Channel: Ahmed Sami
Simple CGI program
Simple CGI program
Published: 2014/05/12
Channel: Jonathan Geisler
Create first cgi script
Create first cgi script
Published: 2016/04/27
Channel: Greg Reichelt
Introduction, Advantages of Servlet Over CGI, Uses of Java Servlet
Introduction, Advantages of Servlet Over CGI, Uses of Java Servlet
Published: 2017/02/05
Channel: Easy Engineering Classes
What Is The CGI?
What Is The CGI?
Published: 2017/08/11
Channel: Aile Aile
Python CGI Query How to
Python CGI Query How to
Published: 2014/01/14
Channel: george boole
Fundamentals of Web Design | Vol. 7 - Web Forms & CGI
Fundamentals of Web Design | Vol. 7 - Web Forms & CGI
Published: 2013/02/21
Channel: Tarena Ruff
Run Cgi Script in Python Using Windows
Run Cgi Script in Python Using Windows
Published: 2016/08/09
Channel: Veerababu Naraharasetti
Difference between CGI and Servlet
Difference between CGI and Servlet
Published: 2016/09/18
Channel: Difference Between
CGI Programming Demostration
CGI Programming Demostration
Published: 2015/10/24
Channel: Connor Lemmon - Entertainment
CGI WITH PERL TUTORIAL
CGI WITH PERL TUTORIAL
Published: 2014/04/29
Channel: MEGA BONE
Perl CGI script
Perl CGI script
Published: 2015/07/22
Channel: Ask Franklyn
SIMPLE CGI BOX EXPLORE
SIMPLE CGI BOX EXPLORE
Published: 2017/06/11
Channel: Psybient Primate
hollodotme/fast-cgi-client examples
hollodotme/fast-cgi-client examples
Published: 2017/04/15
Channel: Holger Woltersdorf
CGI Scripting in Perl and Python: Part 06
CGI Scripting in Perl and Python: Part 06
Published: 2011/05/16
Channel: vkedco
Python CGI Scripting
Python CGI Scripting
Published: 2016/10/06
Channel: Amit Sharma
CGI Scripting in Perl and Python: Part 01
CGI Scripting in Perl and Python: Part 01
Published: 2011/04/29
Channel: vkedco
CGI programming example using C laguage
CGI programming example using C laguage
Published: 2016/11/02
Channel: rajat aswal
5 html with cgi
5 html with cgi
Published: 2014/02/03
Channel: amazingvideo
What Is The Full Form Of CGI?
What Is The Full Form Of CGI?
Published: 2017/07/23
Channel: sparky trend
Perl and HTML - English
Perl and HTML - English
Published: 2016/02/02
Channel: Spoken-Tutorial IIT Bombay
BYUH CIS101 Adding line breaks to a basic perl cgi web page
BYUH CIS101 Adding line breaks to a basic perl cgi web page
Published: 2010/08/26
Channel: Aaron Curtis
Dissertation Project testing cgi raspberry pi
Dissertation Project testing cgi raspberry pi
Published: 2014/05/04
Channel: Patrick Trainor
Python CGI Miles to Kilometers 2 of 2
Python CGI Miles to Kilometers 2 of 2
Published: 2014/01/17
Channel: george boole
09.06.Hello World on CGI
09.06.Hello World on CGI
Published: 2009/10/23
Channel: beci67
The history of PHP
The history of PHP
Published: 2014/08/22
Channel: vidce .com
CGI Scripting in Perl and Python: Part 03
CGI Scripting in Perl and Python: Part 03
Published: 2011/05/09
Channel: vkedco
Technote CGI Exploit 0.4 Remote Shell Upload Vulnerability
Technote CGI Exploit 0.4 Remote Shell Upload Vulnerability
Published: 2016/04/10
Channel: DeFaCeR ThoR
NEXT
GO TO RESULTS [51 .. 100]

WIKIPEDIA ARTICLE

From Wikipedia, the free encyclopedia
Jump to: navigation, search

The Simple Common Gateway Interface (SCGI) is a protocol for applications to interface with HTTP servers, as an alternative to the CGI protocol. It is similar to FastCGI but is designed to be easier to implement and crucially, permits CGI operations where the CGI operation has significant latency[clarification needed] (e.g. contacting an external database).

Specification[edit]

The client connects to a SCGI server over a reliable stream protocol allowing transmission of 8-bit bytes. The client begins by sending a request. When the SCGI server sees the end of the request it sends back a response and closes the connection. The format of the response is not specified by this protocol.[note 1]

Request format[edit]

A request consists of a number of headers and a body. The format of the headers is:

headers ::= header*
header ::= name NUL value NUL
name ::= notnull+
value ::= notnull*
notnull ::= <01> | <02> | <03> | … | <ff>
NUL = <00>

Duplicate names are not allowed in the headers. The first header must have the name "CONTENT_LENGTH" and a value that is the length of the body in decimal. The "CONTENT_LENGTH" header must always be present, even if its value is "0". There must also always be a header with the name "SCGI" and a value of "1". In order to facilitate the transition from CGI, standard CGI environment variables should be provided as SCGI headers.

The headers are sent to the server application encoded as a netstring. The body is sent following the headers and its length is specified by the "CONTENT_LENGTH" header.

Example[edit]

The web server (an SCGI client) opens a connection and sends the concatenation of the following strings:

"70:"
    "CONTENT_LENGTH" <00> "56" <00>
    "SCGI" <00> "1" <00>
    "REQUEST_METHOD" <00> "POST" <00>
    "REQUEST_URI" <00> "/deepthought" <00>
","
"What is the answer to life, the Universe and everything?"

The web application (SCGI server) sends the following response:

"Status: 200 OK" <0d 0a>
"Content-Type: text/plain" <0d 0a>
"" <0d 0a>
"42"

The SCGI server then closes the connection.

Web servers that implement SCGI[edit]

Language bindings for the SCGI API[edit]

Notes[edit]

1.^ The specification document was placed in the public domain by Neil Schemenauer on 12 January 2006.

See also[edit]

  • Rack - Ruby web server interface
  • PSGI - Perl Web Server Gateway Interface
  • WSGI - Web Server Gateway Interface

External links[edit]

Disclaimer

None of the audio/visual content is hosted on this site. All media is embedded from other sites such as GoogleVideo, Wikipedia, YouTube etc. Therefore, this site has no control over the copyright issues of the streaming media.

All issues concerning copyright violations should be aimed at the sites hosting the material. This site does not host any of the streaming media and the owner has not uploaded any of the material to the video hosting servers. Anyone can find the same content on Google Video or YouTube by themselves.

The owner of this site cannot know which documentaries are in public domain, which has been uploaded to e.g. YouTube by the owner and which has been uploaded without permission. The copyright owner must contact the source if he wants his material off the Internet completely.

Powered by YouTube
Wikipedia content is licensed under the GFDL and (CC) license