Request Header:
POST https://gfp.line.naver.jp/P3 HTTP/1.1
Host: gfp.line.naver.jp
Connection: keep-alive
Content-Length: 180
Origin: null
X-LAL: en
X-LCS: xxx==
X-LHM: POST
Content-Type: application/x-thrift
X-LST: 260000
Accept: application/x-thrift
X-Line-Application: CHROMEOS 1.4.1 Chrome_OS 1
User-Agent: x
X-LE: 2
DNT: 1
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.8
Response Header:
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: X-Line-HTTP,X-LS
Connection: keep-alive
Content-Length: 292
Content-Type: application/x-thrift;charset=UTF-8
X-LE: 2
X-Line-HTTP: P,HC,LP
X-LS: xxx
I get those headers from Fiddler running on Windows 10 Home,
What I've been research till now, this is the approximately closest thrift file,
https://github.com/cslinmiso/LINE-instant-messenger-protocol/blob/master/line.thrift and I can only find the official compiler https://thrift.apache.org/download and some of the build information
My question, How to decode thrift stream if we have the thrift file and stream header+body?
P.S. My case is different with How can you reverse engineer a binary thrift file?, because I have the thrift file above,