Adding tty output redirection for curl read

Change-Id: Id8d4f71a7a4f804465057cbed27aea81793679b6