Added timeout tests
Added timeout tests
REFACTOR replaced timeout test magic numbers
Reduced timeout wait duration
Relaxed timeout constraints for travis CI
Replace URL variables with ones generated from Enums
Replaced String if else with Enum switch case
Relaxed test timeout some more
Removed unnecessary catch blocks
REFACTOR extracted duplicate connection code
Added test for getHeader
Replaced length function with Java 7 equivalent
Added tests for buffer overflow
Replaced global class buffer with local variants
Created method for closing connections
Moved retry code to own method
Added test for invalid timeout setting
Retry method implemented
Added check for range support
Added retry to getViaHttp