GarageGames/Torque3D — pull request #465 by skaughtx0r (2013-08-12 06:08:04+00:00)
Title: Fix bug in HTTPObject (Fixed)

Fixed the pull request.

HTTPObject's processLine function's signature did not match the virtual processLine function on TCPObject. This caused undesired results.

Instead of HTTPObject::onLine containing just the response data, it also included the full HTTP header. I assume this was not the intended functionality because HTTPObject's processLine was never getting called and fixing it gave me the output that I expected from an HTTP helper class.

There is also an issue where the data returned from the server requires a new line appended to the end, but that problem is happening in TCPObject.

Another issue is that HTTPObject seems to leave the socket connection open after receiving the response from the server. I had to add special code to my php file to force the connection closed.

Anyway, this only fixes the first problem.