генерим подобную строку и кидаем на tcp
GET / HTTP/1.1
User-Agent: Opera/9.64 (Windows NT 5.1; U; en) Presto/2.1.1
Host: www.google.lv
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: ru-RU,ru;q=0.9,en;q=0.8
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Cookie: PREF=ID=5aada6899ae6f668:TM=1232544408:LM=1232544408:S=u4LCXaAdHJ0zDfAR; NID=21=TvyTLw3tnRx7CAPMhv7L63SAqKeDYPUfkAvi0BXw_TTnzYaA0eAZQWB5-MxnZAZBh49TmR75vgZgu_hfPbBc67xwn5cOcn5v0kGruSi3kahWR97EVOUbnGYrnCDfMFzu
Cookie2: $Version=1
Connection: Keep-Alive
это бы сильно упростило мою схему