moocowmoo / dashman

DASH wallet/daemon management utilities
MIT License
52 stars 38 forks source link

add -L to curl_cmd for redirects #7

Closed ralphtheninja closed 8 years ago

ralphtheninja commented 8 years ago

This fixes a problem where an old api url causes 301 from nginx. Using -L with curl makes curl retry on the moved host.

More concretely. The following url was used:

https://dashninja.pl/api/masternodes?ips=\["x.y.z.w:9999"\]&portcheck=1&balance=1

When the new url is https://www.dashninja.pl/api..