Update README

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
main
Jianhui Zhao 2018-01-04 12:46:48 +08:00
parent 9b41ba970b
commit c496352935
2 changed files with 38 additions and 0 deletions

View File

@ -62,6 +62,25 @@ Then use the command curl or browser to test
$ curl -k 'https://127.0.0.1:8000/hello?name=test' -d '{"name":"libuhttpd"}' -v
# How to use on OpenWRT
add new feed into "feeds.conf.default":
src-git libuhttpd https://github.com/zhaojh329/libuhttpd-feed.git
Install libuhttpd packages:
./scripts/feeds update libuhttpd
./scripts/feeds install -a -p libuhttpd
Select package libuhttpd in menuconfig and compile new image.
Libraries --->
Networking --->
<*> libuhttpd-mbedtls.................................... libuhttpd (mbedtls)
< > libuhttpd-nossl....................................... libuhttpd (NO SSL)
< > libuhttpd-openssl.................................... libuhttpd (openssl)
< > libuhttpd-wolfssl.................................... libuhttpd (wolfssl)
# Example
```
#include <uhttpd.h>

View File

@ -63,6 +63,25 @@
$ curl -k 'https://127.0.0.1:8000/hello?name=test' -d '{"name":"libuhttpd"}' -v
# 如何在OpenWRT中使用
Add new feed into "feeds.conf.default":
src-git libuhttpd https://github.com/zhaojh329/libuhttpd-feed.git
Install libuhttpd packages:
./scripts/feeds update libuhttpd
./scripts/feeds install -a -p libuhttpd
Select package libuhttpd in menuconfig and compile new image.
Libraries --->
Networking --->
<*> libuhttpd-mbedtls.................................... libuhttpd (mbedtls)
< > libuhttpd-nossl....................................... libuhttpd (NO SSL)
< > libuhttpd-openssl.................................... libuhttpd (openssl)
< > libuhttpd-wolfssl.................................... libuhttpd (wolfssl)
# 示例程序
```
#include <uhttpd.h>