Added support for CURLOPT_POSTREDIR

This is PR implements CURLOPT_POSTREDIR.

This was reported in issue #1477