From 5220c1d69240dfab2087990d24229f81db9b4b33 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 4 Jan 2014 18:10:18 +0000 Subject: examples: Standardised username and password settings for all email examples Replaced the use of CURLOPT_USERPWD for the preferred CURLOPT_USERNAME and CURLOPT_PASSWORD options and used the same username and password for all email examples which is the same as that used in the test suite. --- docs/examples/imap-search.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/examples/imap-search.c') diff --git a/docs/examples/imap-search.c b/docs/examples/imap-search.c index fcc5c528d..0c1d26734 100644 --- a/docs/examples/imap-search.c +++ b/docs/examples/imap-search.c @@ -36,7 +36,8 @@ int main(void) curl = curl_easy_init(); if(curl) { /* Set username and password */ - curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password"); + curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); + curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); /* This is mailbox folder to select */ curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/INBOX"); -- cgit v1.2.3