17 Apr
2015
17 Apr
'15
3:45 a.m.
2015-04-17 4:21 GMT+03:00 Oleg Stolyar <olegstolyar@gmail.com>:
resp = api:execute("curl", some_url)
where can I get the curl response code?
I use json local response = api:execute("curl", url .. " json timeout 2 get ") resp = json.decode(response) if resp.status_code ~= 200 then ....