diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-01-04 18:10:18 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-01-04 18:12:02 +0000 |
commit | 5220c1d69240dfab2087990d24229f81db9b4b33 (patch) | |
tree | 1abf2c637f0cfdf08e7327d0b00c934bc7d1d704 /docs/examples/imap-list.c | |
parent | 84a9f092dc187400cfd2448c73f44602b042c1b1 (diff) |
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.
Diffstat (limited to 'docs/examples/imap-list.c')
-rw-r--r-- | docs/examples/imap-list.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/examples/imap-list.c b/docs/examples/imap-list.c index 45f311d52..4223052e4 100644 --- a/docs/examples/imap-list.c +++ b/docs/examples/imap-list.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -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 will list the folders within the user's mailbox. If you want to * list the folders within a specific folder, for example the inbox, then |