Fix POST requests to use data= instead of params=,
else would turn into GET-style parameters.
Add extra debugging (commented out).