changed post to get for getfreidnsarray since your pulling from header not receiving from ajax