fixes in http_request.rb

with test cases
Merge pull request #18 from yast/tests_and_fixes

fixes in http_request.rb