add support for POST and POSTFIELDS curl options