开发者

Pass POST variables to PHP executable

开发者 https://www.devze.com 2022-12-08 01:13 出处:网络
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 executa

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

精彩评论

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