add content-type and make php send headers