Select if sending the request by POST or by GET, and test for that

"Pull request for issue #112 ( https://github.com/CartoDB/cartodb.js/issues/112 ) )