Solved

How do I use POST in C?

Posted on 1997-03-04
1
199 Views
Last Modified: 2013-12-25
   I have made a page:  http://www.east.cn.net/~hyjin/chpass.html  and also design a CGI program with C.  I compiled the C program to executable file.  And the URL is http://www.east.cn.net/~hyjin/cgi-bin/chgpasswd.cgi

    But when I click the "Submit" button in the page, it comes out the following error:

501 Not Implemented
We are sorry to be unable to perform the method POST to non-script at this time or to this document.

    Why does this error happen?  Is the httpd version too old to support the POST method under C executable CGi program?  Should I have to use the Perl/Java/B Shell to write the CGI if I want to use POST method?

    Please reply to my E-mail box also:

    mailto://hyjin@moon.bjnet.edu.cn

    Thanks for your kindly help!

Yours sincerely,
Teddy He
Mar 4, 1997
0
Comment
Question by:hyjin
1 Comment
 

Accepted Solution

by:
henryj earned 100 total points
ID: 1827635
I would guess that this is due to your web server not being configured to accept files with the extension .cgi as valid CGI scripts (perhaps it's set up to only allow .pl files?). Do you have any other CGI programs that end in a .cgi extension and that work? If so then fail this answer and we'll try again :)

If I am right you either need to change the config for the web server yourself or get in touch with your system administrator.

henry

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question