rewrote the transmission to sockets , found a bug in GetContentType call