curl -SX POST http://127.0.0.1/open/api/pudao/fileupload
: $(curl -SX POST http://127.0.0.1/open/api/pudao/fileupload)
(The command substitution is not useful here as such, it's just a minimal reproducible example.)
In the latter case, I see a progress indicator like
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to 127.0.0.1 port 80 after 8 ms: Connection refused
Why does the same command produce different output?