开发者

Pass POST variables to PHP executable

I have been writing an HTTP server in C#, and I've gotten to the point where I want to implement PHP. However, I cannot seem to find a way to pass POST 开发者_JAVA技巧variables to the PHP-CGI executable. I know that I am supposed to use environment variables to communicate with the executable, and most importantly the QUERY_STRING variable. This one just seems to pass GET variables to PHP, not POST. I've also tried writing to the input stream of the executable, but it just ignores that completely. What am I missing?


You need to write to the input stream of the executable. Did you make sure to set the CONTENT_LENGTH environment variable?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜