question

Upvotes
Accepted
50 9 12 20

Curl command prints output in stdout

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.

tick-history-rest-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
11.3k 25 8 13

@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>>

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea