avoid using CURLOPT_USERPWD when possible
authorMarc Fournier <marc.fournier@camptocamp.com>
Tue, 24 Feb 2015 20:46:53 +0000 (21:46 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Tue, 24 Feb 2015 20:46:53 +0000 (21:46 +0100)
commit38e15f5809846c009792ef9aeee800efbf3aa21e
tree7c5778f44f7c0e96bae45a95451fa3b5399a3cb9
parentdd8429c16bc57f949abb2537e003b76ad88b6f90
avoid using CURLOPT_USERPWD when possible

CURLOPT_USERPWD chokes on colons inside usernames or passwords, so use
CURLOPT_USERNAME and CURLOPT_PASSWORD if curl 7.19.1 or newer is found.

Follow-up to 0af75dc13 for the rest of the plugins based on libcurl.
src/apache.c
src/ascent.c
src/nginx.c
src/write_http.c