cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_POSTFIELDS & const char * ??

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 29 Jul 2002 11:46:50 +0200 (MET DST)

On Thu, 18 Jul 2002, Key88 SF wrote:

> Could someone explain why the parameter passed to the curl_easy_setopt()
> function with CURLOPT_POSTFIELDS is a regular "char *", and not a "const
> char *"? Does libcurl modify this data?

No, libcurl does not modify the data. It really could very well be a "const
char *" there.

-- 
  Daniel Stenberg -- curl groks URLs
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
Received on 2002-07-29