$.ajax({ url: "getRegion.xsp", type: "POST", data: ({ city:$('#city').val(), q: $('#street').val(), f: "getStreet", village: $('#village').val(), dom: $('#dom').val(), medgroup:$("#medgroup").val()}), dataType: "html", success: function(response){ var items = response.split("\n");
const static QUrl AddressServiceUrl = QString("https://egisz.medkirov.ru/e-reg2.nsf/getRegion.xsp"); .................. networkManager = new QNetworkAccessManager(this); networkManager->setProxy((!QNetworkProxyFactory::systemProxyForQuery().isEmpty()) ? QNetworkProxyFactory::systemProxyForQuery()[0] : QNetworkProxy()); QNetworkRequest requisitesServiceRequest(AddressServiceUrl); QByteArray requisitesServiceRequestBody; requisitesServiceRequestBody.append("city="); requisitesServiceRequestBody.append(QUrl::toPercentEncoding("Киров")); requisitesServiceRequestBody.append("&q="); requisitesServiceRequestBody.append(QUrl::toPercentEncoding("Грибоедова")); requisitesServiceRequestBody.append("&f=getStreet&village=&dom=37&medgroup="); requisitesServiceRequestBody.append(QUrl::toPercentEncoding("Терапия")); QNetworkReply *requisitesServiceReply = networkManager->post(requisitesServiceRequest, requisitesServiceRequestBody); connect(requisitesServiceReply, &QNetworkReply::finished, [=]() { if ((requisitesServiceReply->error() == QNetworkReply::NoError)) { QString requisitesServiceReplyBody = QString::fromUtf8(requisitesServiceReply->readAll()); QUrl qur = requisitesServiceReply->url(); QList<QByteArray> head = requisitesServiceReply->rawHeaderList(); QList<QNetworkReply::RawHeaderPair> headd = requisitesServiceReply->rawHeaderPairs(); } });