annie_cyy@yahoo.ca
-
Content Count
4 -
Joined
-
Last visited
Posts posted by annie_cyy@yahoo.ca
-
-
RestClient.SecureProtocols:= [THTTPSecureProtocol.SSL2],...
still wrong...
-
Thank you so much. This is my first time writing for cloud. I'm confused, in Win10 or Win8 it works fine, but in Win7 it still works if I send it using "HTTP", but I get an error message when I send it using "https:".
Is it a secure issue?CURL= 'https://Testme.aaaa.com';
-
Tool is Delphi XE 10.3,
In Windows 8 or Windows10 run perfect, but run in Windows 7 , it got error message like title
" REST request failed: Error sending data: (12152) The server returned an invalid or unrecognized response" .
Somebody can help me?
procedure TForm1.MCloud_Prepare_RequestR();
var
__securityAppName : String;
__searchSymbol : String;
__globalID : String;
begin
RESTRequest.Method := TRESTRequestMethod.rmPOST;
RESTClient.Accept:='multipart/form-data';
RESTClient.BaseURL := CURL+':Port#/v1/auth/token';
RESTClient.ProxyPort:=9999;
RESTClient.ProxyServer:=CURL;
RESTClient.ProxyUsername:='CloudTest';
RESTRequest.AcceptEncoding:='UTF8';
RESTRequest.AddParameter('id','12345',TRESTRequestParameterKind.pkREQUESTBODY);
RESTRequest.AddParameter('client_id',CCLIENT_ID,TRESTRequestParameterKind.pkREQUESTBODY);
RESTRequest.AddParameter('secret',CSECRET,TRESTRequestParameterKind.pkREQUESTBODY);RESTRequest.Execute;
end;
REST request failed: Error sending data: (12152) The server returned an invalid or unrecognized response
in Network, Cloud and Web
Posted
Thank you so much,the problem is in ProxyServer, Removed it, perfect.