• Quiet MAGIC/MIME AutoResponder for HTTPD /cgi/ in .c language standard

    From Elanis Michelle Neiswonger@21:1/5 to All on Sun Jul 17 17:43:13 2022
    #include <stdio.h>
    #include <stdlib.h>
    #include <errno.h>
    #include <time.h>
    #include <stdlib.h>
    #include <stdio.h>

    int
    main (void)
    {

    char *env_value, *content_type, fname[128],
    *in_line, *out_line, *url[255], command[128];
    int content_length;
    FILE *tempfile;

    printf ("Content-type: text/html\n\n");
    printf ("<html>");
    printf ("<head>\n");
    content_length = atoi (url);
    env_value = getenv ("QUERY_STRING");
    strcpy(url, env_value);
    if (content_length <= 0)
    {
    printf ("Content-type: text/html\n\n");
    printf ("<html>");
    printf ("<head>\n");
    content_length = atoi (url);
    if (url == NULL)
    {
    printf ("<title>Error Occured</title>\n");
    printf ("</head>");
    printf ("<p>The form is empty; please enter some data!\n");
    printf ("</div></body></html>\n");
    fflush (stdout);
    exit (2);

    }
    /*
    Create temporary file for cron
    */

    tempfile = fopen ("/var/www/blocksvenue/cgi/urls.txt", "w");
    if (tempfile == NULL)
    {
    printf ("Internal failure #1 please report.\n", errno);
    printf ("</div> </body> </html>\n");
    exit (1);

    }
    printf ("<html>");
    printf ("<head>\n");
    printf ("<title>URL Status</title>\n");
    printf ("</head>");
    printf ("<p>The form is filed!\n");
    printf ("</div></body></html>\n");
    fprintf (tempfile, " % s / n ", url);
    fclose (tempfile);
    exit (0);
    }
    }

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Elanis Michelle Neiswonger@21:1/5 to Elanis Michelle Neiswonger on Sun Jul 17 17:45:16 2022
    On Sunday, July 17, 2022 at 7:43:13 PM UTC-5, Elanis Michelle Neiswonger wrote:
    #include <stdio.h>
    #include <stdlib.h>
    #include <errno.h>
    #include <time.h>
    #include <stdlib.h>
    #include <stdio.h>

    int
    main (void)
    {

    char *env_value, *content_type, fname[128],
    *in_line, *out_line, *url[255], command[128];
    int content_length;
    FILE *tempfile;

    printf ("Content-type: text/html\n\n");
    printf ("<html>");
    printf ("<head>\n");
    content_length = atoi (url);
    env_value = getenv ("QUERY_STRING");
    strcpy(url, env_value);
    if (content_length <= 0)
    {
    printf ("Content-type: text/html\n\n");
    printf ("<html>");
    printf ("<head>\n");
    content_length = atoi (url);
    if (url == NULL)
    {
    printf ("<title>Error Occured</title>\n");
    printf ("</head>");
    printf ("<p>The form is empty; please enter some data!\n");
    printf ("</div></body></html>\n");
    fflush (stdout);
    exit (2);

    }
    /*
    Create temporary file for cron
    */

    tempfile = fopen ("/var/www/blocksvenue/cgi/urls.txt", "w");
    if (tempfile == NULL)
    {
    printf ("Internal failure #1 please report.\n", errno);
    printf ("</div> </body> </html>\n");
    exit (1);

    }
    printf ("<html>");
    printf ("<head>\n");
    printf ("<title>URL Status</title>\n");
    printf ("</head>");
    printf ("<p>The form is filed!\n");
    printf ("</div></body></html>\n");
    fprintf (tempfile, " % s / n ", url);
    fclose (tempfile);
    exit (0);
    }
    }
    Use with exact Robots.txt lock down of all files MIME norm. Works awesome with Ubuntu 22.04 real quiet hardened cheap, cheap support live patch.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Elanis Michelle Neiswonger@21:1/5 to Elanis Michelle Neiswonger on Sun Jul 17 17:53:58 2022
    On Sunday, July 17, 2022 at 7:45:17 PM UTC-5, Elanis Michelle Neiswonger wrote:
    On Sunday, July 17, 2022 at 7:43:13 PM UTC-5, Elanis Michelle Neiswonger wrote:
    #include <stdio.h>
    #include <stdlib.h>
    #include <errno.h>
    #include <time.h>
    #include <stdlib.h>
    #include <stdio.h>

    int
    main (void)
    {

    char *env_value, *content_type, fname[128],
    *in_line, *out_line, *url[255], command[128];
    int content_length;
    FILE *tempfile;

    printf ("Content-type: text/html\n\n");
    printf ("<html>");
    printf ("<head>\n");
    content_length = atoi (url);
    env_value = getenv ("QUERY_STRING");
    strcpy(url, env_value);
    if (content_length <= 0)
    {
    printf ("Content-type: text/html\n\n");
    printf ("<html>");
    printf ("<head>\n");
    content_length = atoi (url);
    if (url == NULL)
    {
    printf ("<title>Error Occured</title>\n");
    printf ("</head>");
    printf ("<p>The form is empty; please enter some data!\n");
    printf ("</div></body></html>\n");
    fflush (stdout);
    exit (2);

    }
    /*
    Create temporary file for cron
    */

    tempfile = fopen ("/var/www/blocksvenue/cgi/urls.txt", "w");
    if (tempfile == NULL)
    {
    printf ("Internal failure #1 please report.\n", errno);
    printf ("</div> </body> </html>\n");
    exit (1);

    }
    printf ("<html>");
    printf ("<head>\n");
    printf ("<title>URL Status</title>\n");
    printf ("</head>");
    printf ("<p>The form is filed!\n");
    printf ("</div></body></html>\n");
    fprintf (tempfile, " % s / n ", url);
    fclose (tempfile);
    exit (0);
    }
    }
    Use with exact Robots.txt lock down of all files MIME norm. Works awesome with Ubuntu 22.04 real quiet hardened cheap, cheap support live patch.
    Works great to manual key in PHP/HTML without a multimedia marked USB keyboard, mouse.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Elanis Michelle Neiswonger@21:1/5 to Elanis Michelle Neiswonger on Tue Jul 19 10:27:46 2022
    On Sunday, July 17, 2022 at 7:53:59 PM UTC-5, Elanis Michelle Neiswonger wrote:
    On Sunday, July 17, 2022 at 7:45:17 PM UTC-5, Elanis Michelle Neiswonger wrote:
    On Sunday, July 17, 2022 at 7:43:13 PM UTC-5, Elanis Michelle Neiswonger wrote:
    #include <stdio.h>
    #include <stdlib.h>
    #include <errno.h>
    #include <time.h>
    #include <stdlib.h>
    #include <stdio.h>

    int
    main (void)
    {

    char *env_value, *content_type, fname[128],
    *in_line, *out_line, *url[255], command[128];
    int content_length;
    FILE *tempfile;

    printf ("Content-type: text/html\n\n");
    printf ("<html>");
    printf ("<head>\n");
    content_length = atoi (url);
    env_value = getenv ("QUERY_STRING");
    strcpy(url, env_value);
    if (content_length <= 0)
    {
    printf ("Content-type: text/html\n\n");
    printf ("<html>");
    printf ("<head>\n");
    content_length = atoi (url);
    if (url == NULL)
    {
    printf ("<title>Error Occured</title>\n");
    printf ("</head>");
    printf ("<p>The form is empty; please enter some data!\n");
    printf ("</div></body></html>\n");
    fflush (stdout);
    exit (2);

    }
    /*
    Create temporary file for cron
    */

    tempfile = fopen ("/var/www/blocksvenue/cgi/urls.txt", "w");
    if (tempfile == NULL)
    {
    printf ("Internal failure #1 please report.\n", errno);
    printf ("</div> </body> </html>\n");
    exit (1);

    }
    printf ("<html>");
    printf ("<head>\n");
    printf ("<title>URL Status</title>\n");
    printf ("</head>");
    printf ("<p>The form is filed!\n");
    printf ("</div></body></html>\n");
    fprintf (tempfile, " % s / n ", url);
    fclose (tempfile);
    exit (0);
    }
    }
    Use with exact Robots.txt lock down of all files MIME norm. Works awesome with Ubuntu 22.04 real quiet hardened cheap, cheap support live patch.
    Works great to manual key in PHP/HTML without a multimedia marked USB keyboard, mouse.
    Yes put in a normal header too for peace and quiet....
    without UTF-8.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)