Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/303.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python IIS服务器上的服务器端包含(ssi),读取POST请求数据失败_Python_Iis_Post_Cgi_Ssi - Fatal编程技术网

Python IIS服务器上的服务器端包含(ssi),读取POST请求数据失败

Python IIS服务器上的服务器端包含(ssi),读取POST请求数据失败,python,iis,post,cgi,ssi,Python,Iis,Post,Cgi,Ssi,我的目标是,我的SSI(shtml)将解析POST数据参数,并返回一个基于这些参数的长加密字符串。 我使用IIS作为服务器 我的限制: 我无法更改url-/document.shtml shtml只需要返回base64字符串结果 我尝试的是: 在shtml中使用“exec cgi”,方法如下: document.shtml: 我还没有发现如何使用SSI指令来执行它,我确实知道stdin不会从主脚本传递到cgi 所以我找到了另一个解决方案,它仍然满足了我的限制 在SHTML的IIS处理程序映射中

我的目标是,我的SSI(shtml)将解析POST数据参数,并返回一个基于这些参数的长加密字符串。 我使用IIS作为服务器

我的限制:

  • 我无法更改url-/document.shtml
  • shtml只需要返回base64字符串结果
  • 我尝试的是:

  • 在shtml中使用“exec cgi”,方法如下:
  • document.shtml:


    我还没有发现如何使用SSI指令来执行它,我确实知道stdin不会从主脚本传递到cgi

    所以我找到了另一个解决方案,它仍然满足了我的限制

    在SHTML的IIS处理程序映射中,我将可执行文件配置为php

    在shtml-it-self中,我编写了一段php代码(此处仅显示打印json字符串的示例):