
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
What Content-type is required to write Python CGI program?
If we run simple scripts like hello.py, its output is written on the STDOUT file, i.e., screen.
There is one important and extra feature available which is the first line to be printed Content-type:text/html\r\n\r\n. This line is sent back to the browser and it specifies the content type to be displayed on the browser screen.
We can write advanced CGI programs using Python. This script can interact with any other external system and even exchange information with RDBMS.
- Related Articles
- How to write Python CGI program to interact with MySQL?
- What are the modules required for CGI programming in Python?
- How to write first Hello World program using CGI programming in Python?
- What is CGI in Python?
- First CGI Program in Python
- Passing Checkbox Data to CGI Program in Python
- Passing Radio Button Data to CGI Program in Python
- Passing Text Area Data to CGI Program in Python
- Passing Drop Down Box Data to CGI Program in Python
- How to Write a List Content to a File using Python?
- Program to find minimum time required to complete tasks with k time gap between same type tasks in Python
- What is the difference between GET and POST in Python CGI Programming?
- First CGI Program using Perl
- How to do CGI programming in Python?
- What are environment variables available in Python CGI Programming?

Advertisements