Removed useless HTTP version param
Added error handler + some stylistic
Run Eclipse formatting