|
@@ -147,9 +147,9 @@ var
|
|
bodycontent : TStringStream;
|
|
bodycontent : TStringStream;
|
|
responsecontent : TStringStream;
|
|
responsecontent : TStringStream;
|
|
begin
|
|
begin
|
|
- bodycontent := TStringStream.Create;
|
|
|
|
|
|
+ bodycontent := TStringStream.Create('',TEncoding.UTF8);
|
|
try
|
|
try
|
|
- responsecontent := TStringStream.Create;
|
|
|
|
|
|
+ responsecontent := TStringStream.Create('',TEncoding.UTF8);
|
|
try
|
|
try
|
|
{$IFDEF DELPHIXE8_UP}
|
|
{$IFDEF DELPHIXE8_UP}
|
|
resp := fHTTPClient.Get(aURL,responsecontent,nil);
|
|
resp := fHTTPClient.Get(aURL,responsecontent,nil);
|
|
@@ -185,7 +185,7 @@ begin
|
|
postcontent := TStringStream.Create(Utf8Encode(aInContent));
|
|
postcontent := TStringStream.Create(Utf8Encode(aInContent));
|
|
try
|
|
try
|
|
//postcontent.WriteString(aInContent);
|
|
//postcontent.WriteString(aInContent);
|
|
- responsecontent := TStringStream.Create;
|
|
|
|
|
|
+ responsecontent := TStringStream.Create('',TEncoding.UTF8);
|
|
try
|
|
try
|
|
{$IFDEF DELPHIXE8_UP}
|
|
{$IFDEF DELPHIXE8_UP}
|
|
if aHeaders <> nil then
|
|
if aHeaders <> nil then
|
|
@@ -238,7 +238,7 @@ var
|
|
responsecontent : TStringStream;
|
|
responsecontent : TStringStream;
|
|
begin
|
|
begin
|
|
//postcontent.WriteString(aInContent);
|
|
//postcontent.WriteString(aInContent);
|
|
- responsecontent := TStringStream.Create;
|
|
|
|
|
|
+ responsecontent := TStringStream.Create('',TEncoding.UTF8);
|
|
try
|
|
try
|
|
{$IFDEF DELPHIXE8_UP}
|
|
{$IFDEF DELPHIXE8_UP}
|
|
resp := fHTTPClient.Post(aURL,aInContent,responsecontent);
|
|
resp := fHTTPClient.Post(aURL,aInContent,responsecontent);
|
|
@@ -290,7 +290,7 @@ begin
|
|
postcontent := TStringStream.Create(Utf8Encode(aInContent));
|
|
postcontent := TStringStream.Create(Utf8Encode(aInContent));
|
|
try
|
|
try
|
|
//postcontent.WriteString(aInContent);
|
|
//postcontent.WriteString(aInContent);
|
|
- responsecontent := TStringStream.Create;
|
|
|
|
|
|
+ responsecontent := TStringStream.Create('',TEncoding.UTF8);
|
|
try
|
|
try
|
|
{$IFDEF DELPHIXE8_UP}
|
|
{$IFDEF DELPHIXE8_UP}
|
|
resp := fHTTPClient.Put(aURL,postcontent,responsecontent);
|
|
resp := fHTTPClient.Put(aURL,postcontent,responsecontent);
|