FIX several bugs in sendHttpSocket() function:
- Content-Type and content emptyness coherence checking
- Using right "offset" for size calculation (+3 instead of +1)
- Using strcat() instead of strncat()
- Rigth processing of request without content
- Capturing error return values in calloc()
- Fix out of order free()