fix for segmentaion fault while requesting a url without ssl support