Change method of calling curl.