Port some examples form Lua-cURL