Skip to content

Instantly share code, notes, and snippets.

@takurx
Created June 21, 2018 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takurx/5cd99d6225a462c15c89c55d282d3f69 to your computer and use it in GitHub Desktop.
Save takurx/5cd99d6225a462c15c89c55d282d3f69 to your computer and use it in GitHub Desktop.
C lang. and python hello world CGI
#include <stdio.h>
int main()
{
printf("Content-Type: text/plain\n");
printf("\n");
printf("hello, world!! C Lang. Common Gateway Interface!!");
return 0;
}
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
文字列(hello world.)を表示する
'''
print "Content-Type: text/plain"
print
print "hello world! python CGI!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment