made GET/POST a configurable option