Fixes wrong use of http GET and POST requests. Breaks eunit tests.