if this is a http header it should end with 2x cr lf.
the rows are split by line break. GetStringToken
if u need a value from i would make a function
GetValue(line$,"Content-Type:")
after the header there should come the data part.
data looks like JSON.
normal the http header told you the data length.
often you need to collect the tcp packages until u have the full
data.
then u give this JSON a parser.
on this site are some examples with source.
http://json.org/
the example you showed looks like you want generate and send to server. so it just add strings together.
AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)