accepting curl options as first arguments