Fix Bug #17806 Segmentation fault when passing invalid url to http_get()