remove whitespace from URL
removed debugging statements
use InputStream to read data from client