Hello, I'm doing a part of my server that has to print with a nice format a
code recived previously by the user, I have done it, the problem I have is
the next:
mg_printf_data is printing all the data as html, and the pieces of code
surrended with <>, dosen't apear cause the server treats them as
comentaries.
Anyone has been in the same problem? Any idea to solve this problem? I'm
new, (first project) at html, css, and web service infrastrcture. Thank you
very much!!
(My piece of code that prints the page and the code in a nice format,
html_waiting_form1 and html_waiting_form2 are used and contain more
information)
mg_send_data(conn, html_waiting_form1, strlen(html_waiting_form1));
FILE* file = fopen(nomArchiuRebut, "r");
if (file == NULL)
exit(1);
char line[256];
while (fgets(line, sizeof(line), file)) {
mg_printf_data(conn, "%s", line);
printf("%s", line);
mg_printf_data(conn, "<br>");
}
fclose(file);
mg_send_data(conn, html_waiting_form2, strlen(html_waiting_form2));
--
You received this message because you are subscribed to the Google Groups
"mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/d/optout.