i think maybe curl just doesn't handle -X HEAD correctly internally