Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6999315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:31:32+00:00 2026-05-27T20:31:32+00:00

My C Program Code: #include <stdio.h> int main(void) { printf(Content-Type: text/plain;charset=us-ascii\n\n); printf(Hello world\n\n); return

  • 0

My C Program Code:

#include <stdio.h>
int main(void) {
  printf("Content-Type: text/plain;charset=us-ascii\n\n");
  printf("Hello world\n\n");
  return 0;
}

I compiled it several times, using the commands:

gcc -o first.cgi first.c
gcc first.c -o first.cgi
g++ first.c -o first.cgi

When I use first.cgi in my web it gives error:

  • CGI Error

    The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
    Unrecognized character \x90 at J:\KKS_Sawdagger\cgi-bin\first.cgi line 1.

Can anyone give me the reason please?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:31:32+00:00Added an answer on May 27, 2026 at 8:31 pm

    One possibility is that HTTP requires lines ended with CRLF ("\r\n"); so do most Internet protocols using lines, in fact.

    Now, there are some mitigating observations that may apply to your code. The C standard says that text streams should convert from local native line endings to \n on input and from \n to local native line endings on output. The question would be ‘Is stdout a text stream or a binary stream on Windows?’, and that is a question to which I don’t know the answer (but ‘text’ is a plausible guess – in which case the code should work fine on Windows).

    Since the error message identifies the problem as a byte 0x90, which is not shown in the code, there is probably something else at play here. Have you run the program directly yourself?

    Doesn’t the extension for an executable need to be .exe on Windows? It might be that cmd.exe or some other command interpreter is being given your program to interpret as a script of some sort, and it isn’t liking it very much. (That said, ISTR that GCC on Windows adds the .exe suffix, so the actual outputs from your compilations is first.cgi.exe.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my code!(sorry for my poor english) #include<stdio.h> int convert(char ch); int main(void)
Consider the following code: #include <stdio.h> int main (void) { char str1[128], str2[128], str3[128];
I typed the following program: #include <stdio.h> int main(void) { int a = 3;
#include <stdio.h> #include <ctype.h> #define STRING_LEN 500 void stripspaces(char, char, char); int main(void) {
The code: #include stdafx.h #include stdio.h #include math.h #include stdlib.h #include time.h int main()
My code #include <stdio.h> #include <stdlib.h> #include <ctype.h> void getData(short int *number, char *string)
Consider the following code: class Program { static void Main(string[] args) { Department deathStar
I have the following code: class Program { static void Main(string[] args) { new
my code segfaults and I don't know why. 1 #include <stdio.h> 2 3 void
Using the following code: #include <stdio.h> struct my_struct { int a; int b; my_struct();

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.