upd: added host and port args
upd: exit status, urlparse
upd: removed headers
upd: minor formatting changes