testnet=1 option can be (not) specified in the bitcoin.conf file (thus causing it to be on mainnet by default), and this can be over-ridden in
bitcoin-cli with the
-testnet command-line option.
But, when using the json-rpc interface via curl, I can't figure out how to specify I want testnet in this case. I can put the testnet port 18332 in the url, but I don't know how to use any other "command line" switches when using curl?
Can I do it with curl?