Changed HTTPSocket to use Network Stream