cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: CURLOPT_URL and CURLOPT_USERPASSWD

From: Frank Reid <fcreid_at_ourcorner.org>
Date: Mon, 5 Mar 2001 15:51:43 -0500

On Sunday, 4 March, Daniel Stenberg wrote:

> Most (all?) char * - arguments you pass to libcurl is supposed to
> point to zero terminated strings. The strings must remain while
> libcurl executes, as libcurl don't copy the strings.

That did the trick, Daniel. Apparently, the contents of my strings were
being overwritten during execution of curl_easy_perform(). By allocating
them with memory using strdup(), it works properly now. Thanks for the tip.

Frank
Received on 2001-03-05