Fixed Issue #33 and improved HTTP result handling