Updated to work when not using a proxy. Fixed errant use of variable name 'uri' to 'url'.
Merge pull request #455 from johnmshields/master

Updated to work when not using a proxy.
Merge git://github.com/logstash/logstash