HTTP with sockets and cURL in Web Services