Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.11.0
-
None
-
None
-
The client is a dart app set with httptransport and JsonProtocol. The ide used is IntelliJ.
The server is a cpp program set with httptransport and JsonProtocol as well. The problem is the message sent differs from the message expected. The ide used is QTCreator.
Both client and server run on ubuntu 16.04 xenial.
AMD FX(tm)-8350 Eight-Core Processor
16 gbThe client is a dart app set with httptransport and JsonProtocol. The ide used is IntelliJ. The server is a cpp program set with httptransport and JsonProtocol as well. The problem is the message sent differs from the message expected. The ide used is QTCreator. Both client and server run on ubuntu 16.04 xenial. AMD FX(tm)-8350 Eight-Core Processor 16 gb
Description
Dart httptransport uses base64 encoding to send http post data but Cpp httptransport doesn't decode the base64 coded json message.
Eg.
Message sent by dart client:
POST /olp-0.4 HTTP/1.1 <http headers> WzEsIkxvZ2luIiwxLDEseyIxIjp7InJlYyI6eyIxIjp7ImkzMiI6MH0sIjIiOnsiaTMyIjowfSwiNCI6eyJpMzIiOjB9LCI1Ijp7InN0ciI6InJvbW1lbHN0QGdtYWlsLmNvbSJ9LCI2Ijp7InN0ciI6ImRlc2VuIn0sIjciOnsiaTMyIjowfX19fV0=
Message expected by cpp server:
POST /olp-0.4 HTTP/1.1 <http headers> [1,"Login",1,0,\{"1": {"rec":{"5":{"str":""},"6":\{"str":""},"7":\{"i32":0}}}}]
The question is:
What setup should be set on cpp server to read the message from thrift dart lib?