Closed scambra closed 4 years ago
I think luasocket uses only port 80, and transcribe service is available only on port 443.
If you need HTTPS you should be able to use LuaSec to patch your socket to also support SSL: https://github.com/brunoos/luasec
I'm not sure how to patch socket to support SSL, and I don't think using https module from luasec would work because it has different interface and I don't see how to use PUT or DELETE method.
However, I have given up with this and wrote a ruby script using aws API, and I call ruby script from lua. I have more experience in ruby and I get it working right now, I don't have that lua script anymore.
Thanks for your help
Ok got it. It is my understanding that LuaSec automatically patches the socket from LuaSocket.
I tried to use transcribe, which uses json POST, and it doesn't work, callback is never called. I'm using luasocket and GET requests work, also PUT request with rest-xml protocol (although I get error from amazon). Script hangs on connecting, I can see connection status is SYN_SENT.