Comments (3)
local http = require('https')
local API_TOKEN = "----"
local options = {
host = "api.ukrainealarm.com",
protocol = "https",
port = 443,
path = "/api/v3/regions",
headers = {{"Authorization", API_TOKEN}}
}
local req = http.request(options, function (res, err)
p(">>>>>>>>>>>>>>>>", res, err)
res:on('data', function (chunk)
p("ondata", #chunk)
end)
end)
req:done()
p("sent")
from luvit.
please try set to options.ciphers = 'ALL'
from luvit.
Solved somehow using options = http.parseUrl()
and then https.request()
thanks
from luvit.
Related Issues (20)
- Discussion to consider integration of Roblox's recently open sourced Luau HOT 5
- `https-client` test failing HOT 3
- Version history table
- Support wolfssl or mbedtls?
- require module with non-existant modulepath results in infinite loop HOT 1
- Unix domain sockets HOT 2
- Apple M1 Mac, get error "curl: (22) The requested URL returned error: 404" HOT 2
- fs module does not propagate errors properly
- http server aborted on iSH alpine ios
- [process bomb] binary file recursive create process
- Consider adding a `SECURITY.md` file
- Requiring within a require disables luvit's require system HOT 4
- How to use module that's depended on luvit, uv, and env module in openresty context? HOT 1
- Question: basic http benchmark perform bad with built-in http module and http keep-alive set HOT 7
- Uncaught Error: [string "bundle:/deps/net.lua"]:139: attempt to call local 'callback' (a string value) HOT 2
- net.lua - No callback on connection errors HOT 5
- Losing accuracy at 64 bits. HOT 2
- "EACCES: permission denied" while installing on any non-root account, even through sudo. HOT 5
- Why luvit not sending response to client for empty string HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luvit.