c++ - INDY 8 connection closed gracefully error -
idconnectioninterceptopenssl->ssloptions->method = sslvsslv23; idconnectioninterceptopenssl->ssloptions->mode = sslmclient; idconnectioninterceptopenssl->ssloptions->verifydepth = 0; //.... tchar* sir = sirx[ix].c_str(); ansistring rtf; tstringstream * send = new tstringstream(rtf) ; send->write(sir, (sirx[ix]).length()); // <-- new send->position = 0; tmemorystream *receive = new tmemorystream() ; ansistring adresa = "https://webservicesp.anaf.ro:443/platitortvarest/api/v1/ws/tva"; idhttp->request->accept = "application/json"; idhttp->request->contenttype = "application/json"; idhttp->request->connection = "keep-alive"; idhttp->post(adresa, send, receive);
if use direct internet connection, works fine. problem appear when have proxy server internet connection. put
idhttp->request->proxyserver = proxy_server; idhttp->request->proxyport = strtoint(proxy_port); if(proxy_user.isempty() == false) idhttp->request->proxyusername = proxy_user; if(proxy_passw.isempty() == false) idhttp->request->proxypassword = proxy_passw;
but error appear : connection closed gracefully first interrogation, , after, same interrogation give 501 not implemented
where problem? solutions? thanks!
Comments
Post a Comment