Added post method, added data, headers and cookies for queries