Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
Icecast-common
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-common
Commits
31f24e98
Commit
31f24e98
authored
Jun 18, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feature: Added httpp_get_param() which does POST, then queryparams
parent
937268e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
httpp/httpp.c
httpp/httpp.c
+10
-0
httpp/httpp.h
httpp/httpp.h
+1
-0
No files found.
httpp/httpp.c
View file @
31f24e98
...
...
@@ -596,6 +596,16 @@ const char *httpp_get_post_param(http_parser_t *parser, const char *name)
return
_httpp_get_param
(
parser
->
postvars
,
name
);
}
const
char
*
httpp_get_param
(
http_parser_t
*
parser
,
const
char
*
name
)
{
const
char
*
ret
=
_httpp_get_param
(
parser
->
postvars
,
name
);
if
(
ret
)
return
ret
;
return
_httpp_get_param
(
parser
->
queryvars
,
name
);
}
void
httpp_clear
(
http_parser_t
*
parser
)
{
parser
->
req_type
=
httpp_req_none
;
...
...
httpp/httpp.h
View file @
31f24e98
...
...
@@ -106,6 +106,7 @@ void httpp_set_query_param(http_parser_t *parser, const char *name, const char *
const
char
*
httpp_get_query_param
(
http_parser_t
*
parser
,
const
char
*
name
);
void
httpp_set_post_param
(
http_parser_t
*
parser
,
const
char
*
name
,
const
char
*
value
);
const
char
*
httpp_get_post_param
(
http_parser_t
*
parser
,
const
char
*
name
);
const
char
*
httpp_get_param
(
http_parser_t
*
parser
,
const
char
*
name
);
void
httpp_destroy
(
http_parser_t
*
parser
);
void
httpp_clear
(
http_parser_t
*
parser
);
...
...
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