How to test remote SOCKS5 server using CURL

To test a remote SOCKS5 server (e.g. on 10.1.2.3:10800), you can use curl like this:

curl --socks5 10.1.2.3:10800 http://ifconfig.me

Original source for this method, with more info on SSH port forwarding