Dear PureBasic Experts,
Only this following settings allowed me to make my code work:
Code: Select all
InitNetwork()
If ReceiveHTTPFile("https://myhttps.example.com/getjpeg?id=1","C:\exe\1212.jpg")
PrintN (" #### DOWNLOAD >>>> : " )
Else
PrintN (" #### FAIL FAIL FAIL ---- DOWNLOAD " )
EndIf
Without those above windows settings, it was mission impossible to make it work.
Can anyone please advise why the hell only by doing those settings in windows 10 pro, it allowed purebasic ReceiveHTTPFile to work? (it was not file permission issue).
My server with curl i verified what TLS v1.2 , following encryption was used.
Code: Select all
$ curl https://me.me.me.me.com -v
* Rebuilt URL to: https://me.me.me.me.com
* Trying https://me.me.me.me.com...
* TCP_NODELAY set
* Connected to https://me.me.me.me.com (https://me.me.me.me.com) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server did not agree to a protocol
But i am still confused what those windows checkbox did which fixed and allowed the code to work? How can we identify them quickly in PureBasic? (to avoid wasting 2 weeks which i lost on this)
Thanks guys!!!