Add example config using "_FILE" variables.
Increase limit of config value size from 256 to 1024.
PATH=/
-HTML='''<h1>Test HTML</h1><br>
-<h2>{{{Var}}}</h2>
+HTML='''
+ <html>
+ <head>
+ <style>
+ body {
+ color: #FFF;
+ background-color: #333;
+ }
+ a {
+ color: #AAF;
+ }
+ a:link {
+ color: #AAF;
+ }
+ a:visited {
+ color: #88B;
+ }
+ a:focus a:hover {
+ color: #DDF;
+ }
+ a:active {
+ color: #FFF;
+ }
+ </style>
+ </head>
+ <body>
+ <h1>Test HTML</h1><br>
+ <h2>{{{Var}}}</h2>
+ <h3><a href="/inner">To inner.</a></h3>
+ </body>
'''
Var='''Test var value'''
<html>
<head>
<style>
-body {
-color: #FFF;
-background-color: #333;
-}
+ body {
+ color: #FFF;
+ background-color: #333;
+ }
+ a {
+ color: #AAF;
+ }
+ a:link {
+ color: #AAF;
+ }
+ a:visited {
+ color: #88B;
+ }
+ a:focus a:hover {
+ color: #DDF;
+ }
+ a:active {
+ color: #FFF;
+ }
</style>
</head>
<body>
<h1>Inner</h1>
{{{VAR_FILE}}}
+
+<br>
+<a href="..">Back.</a>
</body>
</html>
#define C_SIMPLE_HTTP_SLEEP_NANOS 1000000
#define C_SIMPLE_HTTP_RECV_BUF_SIZE 1024
-#define C_SIMPLE_HTTP_CONFIG_BUF_SIZE 256
+#define C_SIMPLE_HTTP_CONFIG_BUF_SIZE 1024
#define C_SIMPLE_HTTP_QUOTE_COUNT_MAX 3
#endif