I added the CSEND macro in the last commit which made send()'s a little easier, but I can't use that macro for the binary file data because it is not null terminated and so strlen() does not work. Fixed in this commit by using send() for that one part of the response.