question

Upvotes
Accepted
50 11 20 28

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 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
11.3k 25 9 14

@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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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