This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] RTOS/TM4C1294NCPDT:HTTP 服务器如何生成响应

Guru**** 2608135 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/754439/rtos-tm4c1294ncpdt-http-server-how-to-generate-response

器件型号:TM4C1294NCPDT

工具/软件:TI-RTOS

你(们)好

我有自己的 http 服务器解析器、但匹配了 lwip。

我需要移植到 NDK 的 http 服务器、但我发现在 httpClientProcess 函数中处理了 NDK 的 http 服务器。

此函数可以解析命令并生成响应、但只能获取文件或 cgi 函数。

但是、m 网页将会获得一些有关器件的信息。

如何在没有 CGI 函数的情况下生成响应、或生成自己的 http 服务器。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!
    您的问题不清楚。 您是否在您的 html 页面中寻找 SSI (服务器端包含)方法?
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    你(们)好,查尔斯
    很抱歉、我的描述不清楚。
    我在我的网页中使用了 javascript、它具有以下代码"about .open("get"、"/"+ SCPI_cmd+"id="+ Math.random ()、true);"。
    NDK 的 http 服务器(httpClientProcess)不支持此功能、无法响应网页。
    我想让 http 服务器支持。
    需要修改 httpClientProcess 函数?

    请帮我解决。
    非常感谢。

    TI-RTOS 版本:tirtos_tivac_2_16_01_14

    艾伦
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Allen、

    您是否查看过此页面: processors.wiki.ti.com/.../TI-RTOS_HTTP_Example

    Todd