parent
9b41ba970b
commit
c496352935
19
README.md
19
README.md
|
@ -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
|
$ 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
|
# Example
|
||||||
```
|
```
|
||||||
#include <uhttpd.h>
|
#include <uhttpd.h>
|
||||||
|
|
19
README_ZH.md
19
README_ZH.md
|
@ -63,6 +63,25 @@
|
||||||
|
|
||||||
$ curl -k 'https://127.0.0.1:8000/hello?name=test' -d '{"name":"libuhttpd"}' -v
|
$ 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>
|
#include <uhttpd.h>
|
||||||
|
|
Loading…
Reference in New Issue