Use Curl instead of buggy RestClient