*/
ConfigTab::ConfigTab(QWidget *parent): QWidget(parent) {
file = 0;
- http = new QHttp;
+ http = new QHttp("https://www.soccerproject.com/sptd.php", QHttp::ConnectionModeHttps, 443);
QSettings settings("config/global.ini", QSettings::IniFormat);
langToSave = settings.value("lang", 0).toInt();
useProxy = settings.value("Network/proxyUsed", 0).toInt();
msgbox->setText("downloading...");
file = new QFile("data/data_"+num+".xml");
file->open(QIODevice::WriteOnly);
- QUrl url("http://www.soccerproject.com/sptd.php");
- int p_port = settings.value("Network/proxyPort", 80).toInt();
+ QUrl url("https://www.soccerproject.com/sptd.php");
+ int p_port = settings.value("Network/proxyPort", 443).toInt();
if(useProxy) http->setProxy(settings.value("Network/proxyAddr", "").toString(), p_port, settings.value("Network/proxyName", "").toString(), settings.value("Network/proxyPass", "").toString());
- http->setHost(url.host(), 80);
+ http->setHost(url.host(), QHttp::ConnectionModeHttps, 443);
//QTextStream out(stdout); out << "log";
httpId = http->get(url.path() + "?login=" + QUrl::toPercentEncoding(nick->text()) + "&pw=" + QUrl::toPercentEncoding(pass->text()) + "&sptdid=8&sptdpw=Cerm12", file);
settings.setValue("username", nick->text());