Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4581

HttpTransport with JsonProtocol - Dart Client <--> Cpp server.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.11.0
    • None
    • Dart - Library
    • None

    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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            rommelst Rommel de Sene Trindade
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: