kore/examples/ktunnel
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
..
client Indenting police 2014-10-22 20:50:32 +02:00
conf Allow param blocks to be marked as "querystring" 2018-01-16 18:47:50 +01:00
src Large changes to the memory subsystem in kore. 2016-07-12 13:54:14 +02:00
.gitignore Add KTunnel example, an anything-over-HTTPS tunnel using Kore. 2014-09-17 08:53:13 +02:00
README.md kore -> kodev where appropriate 2017-03-06 11:00:53 +01:00

README.md

KTunnel (anything over HTTPS)

This example demonstrates how we can use Kore to create an anything-over-HTTPS tunnel.

Build:

	# kodev build

Run:

	# kodev run

Test:

	# openssl s_client -connect 127.0.0.1:8888

	Then enter:

	GET /connect?host=74.125.232.248&port=80 HTTP/1.1
	Host: 127.0.0.1

	GET / HTTP/1.1
	Host: www.google.se

	(And hit enter)

You should see Kore connect to the google server given and return the results back to you.

A client for OSX exists under the client/ directory. It requires you to link with -lssl and -lcrypto.