I used netcat and dd via the network to clone machines that has the same HDD:
https://support.tools/dd-over-netcat-clone-drive-remote-back...
But I like the curl approach very much!