mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 17:28:29 +00:00
Update README
This commit is contained in:
parent
eaffe68c1a
commit
4f237af813
1 changed files with 1 additions and 10 deletions
|
@ -130,15 +130,6 @@ res = cli.Post("/post", "text", "text/plain");
|
||||||
res = cli.Post("/person", "name=john1¬e=coder", "application/x-www-form-urlencoded");
|
res = cli.Post("/person", "name=john1¬e=coder", "application/x-www-form-urlencoded");
|
||||||
```
|
```
|
||||||
|
|
||||||
### POST with HTTP headers
|
|
||||||
|
|
||||||
```c++
|
|
||||||
httplib::Headers headers = {
|
|
||||||
{ "Content-Length", "5" }
|
|
||||||
};
|
|
||||||
auto res = cli.Post("/hi", headers, "hello", "text/plain");
|
|
||||||
```
|
|
||||||
|
|
||||||
### POST with parameters
|
### POST with parameters
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue