add initheader to request to proper handle json post/put requests by remote rails apis