(1)When I try:<div><br></div><div>telnet <a href="http://www.google.com" target="_blank">www.google.com</a> 80</div><div><br></div><div>POST / HTTP/1.1</div><div>Content-Length:10</div><div><br></div><div>just for test</div>
<div><br></div>
<div>Google will return a 405 method not allowed response.</div><div>What kind of file will allow the POST method except the CGIs?</div><div><br></div><div>(2)I have a question about using the CGI script you give us.</div>
<div>When I try to use a POST form to submit data to my server. </div>
<div>I can use a simple C executable file to take the data from the form as the input and print them out to the client side or to the browser.</div><div><br></div><div>But when I use the CGI script you give us, the post.cgi cannot get the post data I sent by form. </div>

<div>How can I pass the data I got from the form to the post.cgi?</div><div>What I have tried is execve("path/to/post.cgi", "postdata I got from form", env).</div><div><br></div><div>Thanks</div><div>
Chao</div>
<div><div class="gmail_quote">2012/12/15 Jan Schaumann <span dir="ltr"><<a href="mailto:jschauma@stevens.edu" target="_blank">jschauma@stevens.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<a href="mailto:cs631apue@lists.stevens.edu" target="_blank">cs631apue@lists.stevens.edu</a></blockquote></div><br></div>