bugfix: invalid curl option const name for proxy type value.
 bugfix: Content-Type header was always multipart/form-data.
 bugfix: invalid replacing of headers logic.
 Implemented url-encoding od POST data.
 Added new unit test cases.