Jianhui Zhao
|
f6d609dded
|
chmod 644
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-03-18 10:48:32 +08:00 |
Jianhui Zhao
|
2210378a91
|
Fix compile errr when not enable Lua.
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-03-12 10:57:50 +08:00 |
Jianhui Zhao
|
379bfd2479
|
change license to LGPL2
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-03-03 17:33:49 +08:00 |
Jianhui Zhao
|
81de054b07
|
Support Lua template
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-02-13 21:43:35 +08:00 |
Jianhui Zhao
|
60e052c6b8
|
Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-17 12:57:23 +08:00 |
Jianhui Zhao
|
573969eadd
|
Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-17 12:50:25 +08:00 |
Jianhui Zhao
|
33e2f8e272
|
Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-10 23:30:24 +08:00 |
Jianhui Zhao
|
769b6d2dbd
|
example/helloworld.c: Fix segment fault
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-08 14:29:08 +08:00 |
Jianhui Zhao
|
ad46c0592b
|
Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-06 14:38:34 +08:00 |
Jianhui Zhao
|
c9252d78e4
|
Optimize build for example
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-05 21:46:03 +08:00 |
Jianhui Zhao
|
cbe7173205
|
New member function for struct uh_client
cl->get_url(cl);
cl->get_var(cl, "name");
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-01 11:44:46 +08:00 |
Jianhui Zhao
|
89851e3f33
|
Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-01 10:30:41 +08:00 |
Jianhui Zhao
|
4fc1826889
|
Optimize example
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-01 09:37:59 +08:00 |
Jianhui Zhao
|
eede72a4d2
|
Move gen_cert.sh and openssl.cnf to example
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-12-30 12:41:17 +08:00 |
Jianhui Zhao
|
4fe8482b9f
|
Fix compile example failed
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-12-30 12:34:19 +08:00 |
Jianhui Zhao
|
c1da233ab0
|
Improve CMakeLists.txt
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-12-30 12:24:00 +08:00 |
Jianhui Zhao
|
3aa5d2aeed
|
Fix License format
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-12-30 11:36:20 +08:00 |
Jianhui Zhao
|
ab0228ffa8
|
Support parse POST data
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-12-29 17:48:06 +08:00 |
Jianhui Zhao
|
568a287feb
|
Restructure with libubox
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-12-29 14:40:58 +08:00 |
Jianhui Zhao
|
62a3a563f1
|
Renamed project: libuhttp -> libuhttpd
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-12-29 11:44:03 +08:00 |
Jianhui Zhao
|
6f0f62faa8
|
Lua template: Add Http Variables
<h1>------------Http Variables-------------</h1>
<%for k, v in pairs(_UHTTP["VARIABLES"]) do%>
<h1><%=k%>: <%=v%></h1>
<%end%>
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-12-09 23:28:32 +08:00 |
Jianhui Zhao
|
52f6309844
|
Lua template: Add the headers variable
Example:
<%for k, v in pairs(_UHTTP["HEADERS"]) do%>
<h1><%=k%>: <%=v%></h1>
<%end%>
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-12-05 23:01:44 +08:00 |
Jianhui Zhao
|
d38f1d1f4b
|
Add test file for Lua template
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-12-05 16:53:19 +08:00 |
Jianhui Zhao
|
e4d8ce13ef
|
Support Lua template
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-12-05 16:46:57 +08:00 |
Jianhui Zhao
|
7ec4490eae
|
Change the names of variables and functions to make them more readable.
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-11-27 12:50:38 +08:00 |
Jianhui Zhao
|
af2c594e09
|
Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-11-26 15:30:37 +08:00 |
Jianhui Zhao
|
9702ab5851
|
Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-11-22 23:04:28 +08:00 |
Jianhui Zhao
|
32f478f370
|
Optimize directory organization structure
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-11-22 22:57:38 +08:00 |
Jianhui Zhao
|
f9184839ff
|
New function: uh_unescape()
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-11-14 22:16:26 +08:00 |
Jianhui Zhao
|
196c6e3814
|
New function uh_get_var() but need to perfect
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-11-14 00:03:48 +08:00 |
Jianhui Zhao
|
3d92d0665f
|
Fix bug: Incorrect use the function uh_con_reuse()
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-11-13 23:36:17 +08:00 |
Jianhui Zhao
|
ee31e3f1fa
|
In order to be compatible with different editor, convert all Tab to spaces
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-11-13 20:51:42 +08:00 |
Jianhui Zhao
|
383f325547
|
Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-11-12 19:23:12 +08:00 |
Jianhui Zhao
|
73c08a4bcf
|
Optimize code for example
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-11-12 15:11:39 +08:00 |
Jianhui Zhao
|
5757cbeb78
|
New script used to automatically generate SSL certificate files
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-11-11 17:10:22 +08:00 |
Jianhui Zhao
|
fbbea9df30
|
Basically complete SSL support: Optional OpenSSL and CyaSSl(wolfssl)
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-11-10 18:51:49 +08:00 |
Jianhui Zhao
|
38f1f37467
|
The basic framework is implemented
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-11-09 12:54:28 +08:00 |