Am trying to create embedded web server. My code is working fine but i notice that when i add more html code to the "const char HTML_ANALOG_PAGE" array, it splits the code into multiple parts on the client side like having multiple <HTML> tag in a single page. What can i do? I tried change the max number of char in http.c file but it crashes when it get to that particular page.
Am new here so i don't really know how you post code but this is where am having problem.
If i add one more line to it, the page will split at the client side. Please i need your help has i have tried everything i can think of.
arotob
Joined: 26 Jun 2015 Posts: 3
Posted: Sat Jun 27, 2015 1:45 am
Seems like no one is ready to help. What have been able to find out is that the http.c is not able to process all the character in the constant char at once before it send the http 1.0 OK to the browser. How can I add delay to make the http get all the character before sending it to the browser. Please I really need it. Thanks.
arotob
Joined: 26 Jun 2015 Posts: 3
Posted: Sat Jun 27, 2015 6:19 am
I have been able to get the solution. Just in case anyone have the same problem. The problem was the TCPPutFIleParseConst function in the http.c was not able to get the correct number of char maybe because of the number of char in the HTML_INDEX_PAGE. so what I did was to change the filesize and max to int8 instead of 32. Then I added 500 to max variable
max = *n;
max = max + 500;
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum