This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

username and password for socket.http.PROXY
#1
Hello,
I want to connect to a proxy that requires a Basic authentication.

In my script, I wrote something like this:
Code:
socket.http.PROXY = http://username:password@proxy_ip:proxy_port

But it doesn't work.

However it seems that the proxy Basic authentication seems to be implemented in the luasocket library since August 24th 2015 (see here on GitHub)
[Image: v1ODHTP.png]

does that mean that the luasocket version implemented in the LogicMachine is older than that?
  • If yes, would it be possible to update it to a newer version in the next firmware?
  • If no, what did I do wrong in my implementation?

Best regards
Reply
#2
This was not implemented in our LuaSocket version. This will be added in the next firmware build.
A package update can be also provided if needed, what hardware version do you have?
Reply
#3
(25.04.2022, 09:22)admin Wrote: This was not implemented in our LuaSocket version. This will be added in the next firmware build.
A package update can be also provided if needed, what hardware version do you have?

Thanks for your reply. The hardware version is the following: LM5 Reactor IO V2 (i.MX6)
Reply
#4
Install through System config > System > Packages > Add (+):
https://dl.openrb.com/pkg/luasocket_2.0....5_imx6.ipk
Reply
#5
Hello, unfortunately after installing the latest version of luasocket that you provided in the previous message, another error showed up:
Code:
error loading module 'ssl.core' from file 'Library ssl.so':
Error loading shared library libssl.so.1.1: No such file or directory (needed by Library ssl.so)
stack traceback:
[C]: at 0x00054b64
[C]: in function 'require'
Library ssl: in function <Library ssl:0>
[C]: in function 'require'
Library socket/http: in function <Library socket/http:0>
[C]: in function 'require'
User script:12: in main chunk

It seems to be a dependency issue, namely the library ssl.so is not present. Do you think it would be possible for you to compile us all the dependencies of this version of luasocket so we can effectively use it in the LogicMachine?
Reply
#6
Do you have the latest firmware installed?
Reply
#7
(03.05.2022, 14:16)admin Wrote: Do you have the latest firmware installed?

Indeed it works correctly with the latest firmware. The problem occurs only on machines with older firmwares.
Reply


Forum Jump: