Added support for POST requests and query strings