Fix POST error caused by Requests.jl change

In Requests.jl, a refactoring changed a function argument to a keyword
argument, thus causing “no method available” errors in POST functions.
This change incorporates the headers keyword argument and fixes a
non-working test.