It seems the issue was with my curl command. and the resolve
curl -kLvv --resolve httpbin.example.com:444:XXX.XXX.XXX.XXX https://httpbin.example.com:444/get?foo=bar
Use the resolve option and changing from the IP address to the actual hostname works. Not sure what the difference is.