Support curl content-type

Fixes #2515