hyjin
asked on
How do I use POST in C?
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
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.
Thanks for your kindly help!
Yours sincerely,
Teddy He
Mar 4, 1997
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The way I see it, your server *does* recognize POST, but it refuses to execute your program with POST, probably due to the server configuration.
Have you tried using POST with a CGI script in the same location?
Just use any dummy script to see if you get the same error or another one.