Skip to content

Instantly share code, notes, and snippets.

@rincew1nd
Created November 20, 2018 15:24
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 rincew1nd/497328d6b5fd6f864c703739c85cb2eb to your computer and use it in GitHub Desktop.
Save rincew1nd/497328d6b5fd6f864c703739c85cb2eb to your computer and use it in GitHub Desktop.
using System;
using System.Data.SqlClient;
namespace TestCGI
{
class Program
{
[STAThread]
static void Main(string[] args)
{
using (var connection = new SqlConnection("Data Source=asdf;Initial Catalog=asdf;User ID=asdf;Password=1234;Connect Timeout=30"))
{
connection.Open();
}
Console.Write("Content-Type: text/html; charset=windows-1251\n\n");
Environment.Exit(0);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment