FlyingOE / qURL

Simple libcurl wrapper based on KxSystems/kdb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qURL

A very simple libcurl wrapper based on KxSystems/kdb's implementation.

Why qURL

kdb+ started to support HTTPS requests navtively since V3.4t 2016.05.12.

But as mentioned in the documentation, the native TLS support does not support concurrent queries within slave threads. Furthermore, kdb+'s native TLS support works only with OpenSSL 1.0.2, which might not be desirable.

qURL aims to work around both of these problems by using the popular libcurl to do the heavy lifting.

Rant

As much as I love the simplicity of q, I hate the k-like code format in Kx's Java/C code. curl.c here has, thus, been heavily reformatted before addition of extra features. ^_*

Why curl.c

Given the specific requirements of my project, I need only a thin wrapper around libcurl to perform simple concurrent HTTPS queries. Kx's sample implementation, while simplistic, is a very good starting point.

Why curl for Windows

As my project mainly runs on Windows, I opted to use curl for Windows as the libcurl version to use. For simplicity, all dependent libraries (headers/libs/dlls) required to build qURL under Visual Studio are directly included in this project.

If there is any issue with such inclusion, please kind let me know!

Limitations

Only simple GET and POST queries are supported at the moment.

About

Simple libcurl wrapper based on KxSystems/kdb

License:Apache License 2.0


Languages

Language:C 98.5%Language:q 0.8%Language:C++ 0.7%