Curl command prints output in stdout

Ayan
Ayan Contributor

Hi,

While downloading NFE data (On demand) using the curl command below, we see garbage output being written to stdout. PFA fdm-trth-nfe-output-20171028154600-00001.txt

curl -vk -x <<IPAddress>>:8080 -o <<TargetLocation>> <<AWS Link>>

Would you please let know how to get rid of this? We are not facing this issue while downloading MBO (On demand) data for other exchanges.

Best Answer

  • @Ayan

    Could you share the actual command used in your script? I suspect that there are two duplicate AWS links in the command as curl try to re-download from the same URL on existing connection.

    * Re-using existing connection! (#0) with host 10.192.116.73

    I am able to replicate the issue with the following command.

    curl -vk -o <<TargetLocation>> <<AWS Link>> <<AWS Link>>