lua-resty-requests icon indicating copy to clipboard operation
lua-resty-requests copied to clipboard

Yet Another HTTP library for OpenResty - For human beings!

Results 11 lua-resty-requests issues
Sort by recently updated
recently updated
newest added

local requests = require "resty.requests" local r,err=requests.request{ method = "GET", url = "172.16.18.106:8066/portal/login.jsp", { http20 = true, }, } but i got accelog like this: 127.0.0.1 - - [09/Mar/2021:17:38:24 +0800]...

i had use the command to install ``` $ opm get tokers/lua-resty-requests``` ``` but when i require, need a new package resty.socket. resty -e 'print(require "resty.requests")' ERROR: ./resty/requests/adapter.lua:4: module 'resty.socket'...

Hello, thanks for the convenient library. I have one question regarding proxy usage, can I pass authentication for a proxy?

in session mode, the "set-cookie" from server can not be set to next request

add new feature==>support multipart/form ,so we can upload file by requests like python requests

fix https://github.com/tokers/lua-resty-requests/issues/29

https://github.com/tokers/lua-resty-requests/blob/ff1309a4882a8253df18d6a37985f004aec3f8a1/lib/resty/requests/response.lua#L315 https://github.com/tokers/lua-resty-requests/blob/ff1309a4882a8253df18d6a37985f004aec3f8a1/lib/resty/requests/response.lua#L316 I found the bug is caused by the code, fixed ContentType values, it should using regular expression to detect the validity of ContentType

ngx.socket sslhandshake: expecting 1 ~ 5 arguments (including the object), but seen 6 stack traceback: coroutine 0: [C]: in function 'sslhandshake' ...penresty/luajit/share/lua/5.1/resty/requests/adapter.lua:352: in function ...penresty/luajit/share/lua/5.1/resty/requests/adapter.lua:691: in function 'send' ...penresty/luajit/share/lua/5.1/resty/requests/session.lua:212: in...

We need the socks5 proxy support.

enhancement