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.

Hercules TMS570 LWIP SSI

Other Parts Discussed in Thread: TMS570LS3137

Hello,

I want to run lwip on a TMS570ls3137 with SSI. The standard http and tcp communication works great. But if i want to use SSI only the source code of the webside is shown from my browser. So it has something to do with SSI handling, but i do not find my failure.

Here is a screen shot of wireshark. I think the problem is that the client sends a normal httpd request and gets a tcp response..

I added my test project, so you can test it by yourself

1581.test_project.rar

If you need more information, please let me know!

Regards

MaTT

  • Matt,

     We will forward your query to our expert who will provide an response

    Hercules forum support

  • Hi Matt,
    Apologies for the delay.

     From what I see, the index.shtml that you're using doesn't have any SSI. Please clarify if i'm looking at the wrong file or something like that.

    Also, I found this in the comments in the httpd.c file of lwip:

    " /* This httpd supports for a
    * rudimentary server-side-include facility which will replace tags of the form
    * <!--#tag--> in any file whose extension is .shtml, .shtm or .ssi with
    * strings provided by an include handler whose pointer is provided to the
    * module via function http_set_ssi_handler(). "

    Also,

    "* Notes about valid SSI tags

    * --------------------------
    *
    * The following assumptions are made about tags used in SSI markers:
    *
    * 1. No tag may contain '-' or whitespace characters within the tag name.
    * 2. Whitespace is allowed between the tag leadin "<!--#" and the start of
    * the tag name and between the tag name and the leadout string "-->".
    * 3. The maximum tag name length is LWIP_HTTPD_MAX_TAG_NAME_LEN, currently 8 characters."

    Hope that helps. Otherwise please give us more information about the problem that you're facing.

    Thanks and Regards,

    Chaitanya