Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
33e769bd
Commit
33e769bd
authored
8 years ago
by
Evelyn
Committed by
GitHub
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update mg_connect_http.md
parent
992f3000
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mg_connect_http.md
docs/c-api/http.h/mg_connect_http.md
+4
-4
No files found.
docs/c-api/http.h/mg_connect_http.md
View file @
33e769bd
...
...
@@ -10,13 +10,13 @@ signature: |
const char *post_data);
---
Helper function that creates outbound HTTP connection.
Helper function that creates
an
outbound HTTP connection.
`url`
is a URL to fetch. It must be properly URL-encoded, e.g. have
no spaces, etc. By default,
`mg_connect_http()`
sends Connection and
Host headers.
`extra_headers`
is an extra HTTP header
s
to send, e.g.
no spaces, etc. By default,
`mg_connect_http()`
sends
the
Connection and
Host headers.
`extra_headers`
is an extra HTTP header to send, e.g.
`"User-Agent: my-app\r\n"`
.
If
`post_data`
is NULL, then
GET request is created. Otherwise,
POST request
If
`post_data`
is NULL, then
a GET request is created. Otherwise, a
POST request
is created with the specified POST data. Note that if the data being posted
is a form submission, the
`Content-Type`
header should be set accordingly
(see example below).
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment