full control over curl headers and response