http - 这是什么脚本语言? <%if $(http.request 方法 ='POST' ) >

标签 http scripting busybox

我正在浏览一个小型 Linux 发行版(基于 Busybox - 用于运行 GSM 电话交换机),我发现许多用脚本语言编写的脚本来自 xml文件。这些文件的扩展名为 csp

<%output disable>
<%if $(httpd.requestMethod='POST') >
  <%call httpd.authenticate: "Please Login">
  <%if $(httpd.authUser='admin') >
    <%if $(httpd.authPassword!=ADMIN_PASSWORD)>
         <%call httpd.forceAuthenticate: "Please Login">
    <%endif>
  <%else>
     <%call httpd.forceAuthenticate: "Please Login">
  <%endif>
  <%if $(param1='1')>
     <%set PROGRAM_ARG_1:=$(param2)>
     <%call syscfg.save>
     <%call system.exec: /usr/bin/echocmd, $(action)>
    <%endif>
  <%endif>
<%endif>

它似乎是 ASP、python 和 shell 脚本的混合体!

这是什么脚本语言?我在哪里可以找到它的手册?

例如:

我有 send_status.html ,它接收 ajax 请求。在这个文件中有这一行 <%include send_status.csp> . 神奇地这个命令行 /usr/bin/echocmd, $(action)被执行! (注意:$(action) 被扩展为名为 action 的 POST 参数——这非常糟糕!)。

最佳答案

可能是 Caché 和 Caché Server Pages (CSP)

关于http - 这是什么脚本语言? <%if $(http.request 方法 ='POST' ) >,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21256166/

相关文章:

embedded-linux - 如何将libselinux添加到openwrt构建系统中?

java - 始终向客户端发送 HTTP 响应而无需请求

http - 如何使用 boost::http::response_parser 解析字符串?

http - 监控来自非浏览器的http请求

c - 创建 : <Method Name> <Num of times called> for a particular project directory list 的脚本

linux - bash:获取以给定字符串开头的命令列表

python - 使用 Python Scrapy 时的 HTTP 403 响应

windows - Windows 的脚本语言?

linux - 如何在 BusyBox shell 中生成随机数

linux - 从引导加载程序中获取序列号