kore/examples/parameters
Joris Vink b95b623e72 Allow param blocks to be marked as "querystring"
Before params get would mean querystring and anything else
would just count toward a www-encoded body.

Now you can prefix the params block with "qs" indicating that
those configured parameters are allowed to occur in the query
string regardless of the method used.

This means you can do something like:

params qs:post /uri {
	...
}

to specify what the allowed parameters are in the querystring for
a POST request towards /uri.

inspired by and properly fixes #205.
2018-01-16 18:47:50 +01:00
..
conf Allow param blocks to be marked as "querystring" 2018-01-16 18:47:50 +01:00
src kore_buf_create -> kore_buf_alloc. 2016-07-14 12:34:29 +02:00
.gitignore Add a parameters example. 2014-08-04 19:00:25 +02:00
README.md kore -> kodev where appropriate 2017-03-06 11:00:53 +01:00

README.md

Example on how to handle GET/POST parameters in Kore.

Run:

	# kodev run

Test:

	# curl -i -k https://127.0.0.1:8888/?id=123123

The output will differ based on wether or not id is a valid u_int16_t number or not. (the string should always be present).