Author Topic: TCPObject only returning headers  (Read 1019 times)

For some reason, my TCP object only returns headers when querying my server, and no actual data:
Code: [Select]
LINE RECEIVED HTTP/1.1 200 OK
LINE RECEIVED Date: Mon, 04 Nov 2013 02:27:00 GMT
LINE RECEIVED Content-Type: text/html
LINE RECEIVED Content-Length: 3
LINE RECEIVED Connection: keep-alive
LINE RECEIVED Server: Apache/2
LINE RECEIVED X-Powered-By: PHP/5.2.17
LINE RECEIVED Cache-Control: private, pre-check=0, post-check=0, max-age=0
LINE RECEIVED Expires: 0
LINE RECEIVED Pragma: no-cache
LINE RECEIVED

The server does however print text, yet it seems to never show it to the TCPObject
Code: [Select]
pkt = "GET * HTTP/1.1\r\nHost: pspnetworkscom.fatcow.com\r\nUser-Agent: Torque/1.0\r\n\r\n";Any ideas?

EDIT: Solved; changing HTTP/1.1 to HTTP/1.0 fixed the issue (I also removed the User Agent)
Code: [Select]
pkt = "GET * HTTP/1.0\r\nHost: pspnetworkscom.fatcow.com\r\n\r\n";
« Last Edit: November 03, 2013, 09:32:44 PM by PeeEsPee »

Can you post the code you're using?