Skip to content

Error - Missing Content-Type Header #1

Description

@Alirezaies

Hi,
I've Installed Your python-webmin
I wrote a cgi with these contents:

>  #!/usr/bin/python
> import sys
> sys.stdout.write("Content-type: text/HTML \r\n\r\n")
> sys.stdout.write("<!doctype html><html><head><title>Test</title></head>")
> sys.stdout.write("<body><h2>Hello Python</h2></body></html>")

but when I load this i Get Error - Missing Content-Type Header

##Update:
I loaded this as index.cgi of webmin.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions