Hello, I'm trying to query data from server using the client example in SGX_Linux. But occurs a problem: Failed to connect to server.
I modified the client-tls.c file in three places:
- #define SERV_PORT 80
- char sendBuffer[] = "GET /api?module=account&action=balance&address=0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a&tag=latest&apikey=YourApiKeyToken";
- if (net_pton(AF_INET, "23.111.175.138", &servAddr.sin_addr))
And the error code is -326
VERSION_ERROR = -326, /* record layer version error */
Is there some setting somewhere I'm missing?