libcurl返回35

我使用c++和libcurl准备访问https://cloud.seafile.com/api2/auth-token/来测试,但是我使用curl是一切支持,返回token,而libcurl就会报35错误,网上讲是关于ssl的问题,要换成openssl,但是我使用的就是openssl。
我的系统:ubuntu18.04
libcurl版本:libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
代码:
curl_easy_setopt(SeaFileCurl, CURLOPT_URL, “https://cloud.seafile.com/api2/auth-token/”);
curl_easy_setopt(SeaFileCurl, CURLOPT_PORT, 80);
curl_easy_setopt(SeaFileCurl, CURLOPT_POST, 1);
curl_easy_setopt(SeaFileCurl, CURLOPT_POSTFIELDS, “username=xxx&password=xxx”);
curl_easy_setopt(SeaFileCurl, CURLOPT_SSL_VERIFYPEER, 1L);
curl_easy_setopt(SeaFileCurl, CURLOPT_SSL_VERIFYHOST, 2L);
int ok = curl_easy_perform(SeaFileCurl);

乌龙啦,我把curl_easy_setopt(SeaFileCurl, CURLOPT_PORT, 80);删了就ok了,但是如果不是80端口,那是多少呢?
希望有人能答复我。。。