<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPC MicrocontrollersのトピックRe: SSI server ACKs garbage value on browser, file-&amp;gt;data returns packet header instead of file bo</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSI-server-ACKs-garbage-value-on-browser-file-gt-data-returns/m-p/1276397#M45000</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I encounter the exactly same problem, did you find a solution by any chance ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fxois&lt;/P&gt;</description>
    <pubDate>Thu, 13 May 2021 12:20:48 GMT</pubDate>
    <dc:creator>fxois</dc:creator>
    <dc:date>2021-05-13T12:20:48Z</dc:date>
    <item>
      <title>SSI server ACKs garbage value on browser, file-&gt;data returns packet header instead of file body</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSI-server-ACKs-garbage-value-on-browser-file-gt-data-returns/m-p/559059#M15737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rishitborad on Tue Jul 28 02:14:54 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I've written the handler for SSI file and creted .ssi file with ssi tag in it on SD card.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While I am trying to call the .ssi file from html page it gives me garbage values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Digging further I realized that in httpd.c&amp;nbsp; 'fs_open' function is returning structure pointer to 'file' variable and when I read the 'file-&amp;gt;data' it shows the header.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTTP/1.0 200 OK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Server: lwIP/1.3.1 (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fsavannah.nongnu.org%2Fprojects%2Flwip" rel="nofollow" target="_blank"&gt;http://savannah.nongnu.org/projects/lwip&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Content-type: text/html&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Expires: Fri, 10 Apr 2008 14:00:00 GMT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pragma: no-cache&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it should be the content of my .ssi file(HTML syntax) stored in memory card, instead of the header, and program will parse the HTML syntax and find for the SSI tag inside it and replace it with *pcInsert. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C code----------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;const char * tag = "p";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;const char** tag_p = &amp;amp;tag;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;u16_t SSI_Pot_Handler(int iIndex, char *pcInsert, int iInsertLen){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DEBUGOUT("in SSI Handler\n");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(iIndex == 0){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*pcInsert = "50";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //I just want this string on web-browser for now&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;return 2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;return 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:42:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SSI-server-ACKs-garbage-value-on-browser-file-gt-data-returns/m-p/559059#M15737</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: SSI server ACKs garbage value on browser, file-&gt;data returns packet header instead of file bo</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSI-server-ACKs-garbage-value-on-browser-file-gt-data-returns/m-p/1276397#M45000</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I encounter the exactly same problem, did you find a solution by any chance ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fxois&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 12:20:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SSI-server-ACKs-garbage-value-on-browser-file-gt-data-returns/m-p/1276397#M45000</guid>
      <dc:creator>fxois</dc:creator>
      <dc:date>2021-05-13T12:20:48Z</dc:date>
    </item>
  </channel>
</rss>

