copying curl to stdout