Closed MatthijsKamstra closed 6 years ago
fiddle around with the problem.. could remove the HxException with
#elseif python
sock = new sys.net.Socket();
(https://github.com/HaxeFoundation/haxe/blob/development/std/haxe/Http.hx#L441)
But that only provided een Eof
error.
Source can be found here: https://github.com/MatthijsKamstra/haxepython/blob/master/06nasa/code/src/Main.hx
Code works with Neko
This is going to require implementation of sys.ssl.Socket for Python (right now it's only implemented for Neko and C++). It should be possible using standard Python library https://docs.python.org/3.2/library/ssl.html
Basic support for https requests is done in 659dfa63bd917b9ddfaa25ad278916fa6a2fc275.
I tried to access https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY
and get this error:
added
-lib hxssl
but that failed because there is no mention ofpython.Lib
And when I visit https://github.com/tong/hxssl: