Fixed the get request.
Added some debug
better generation of the query parameters.
handle HTTP 300+ responses