Re: please help me..

jeevan jothi <[email protected]> Wed, 13 Aug 2008 11:03:04 -0700 (PDT)
Newsgroups gmane.text.clearsilver.general
Message-ID <[email protected]>
Mr.Brandon, Thank you for your immediate response. The file download worked perfectly...!!!!!!!!! I have gone through your replies for file upload. In fact, I didnt get that Python code. I could not make it to write using C API's. Can you tell me something about  cgi_register_parse_cb(). Why should we have to register a callback? I am a bit confused with the parameters.. like void *rock. Where can I get more details about these API's. Even the comments in the source code is same as that in the clearsilver webpage.
http://www.clearsilver.net/docs/c_api.hdf

Thanks 
Jeevan


Brandon Long <[email protected]> wrote:          Hmm, second request for file upload help in as many days.

You can see my previous response here:

http://tech.groups.yahoo.com/group/ClearSilver/message/1201

File download is just like via any CGI, you probably want to do all of
the output yourself (ie, first print out the headers, probably
Content-Type and Content-Length, then an extra newline, then the file
contents). You can use stdio (ie, fwrite/printf) or use the wrappers
(especially if you're using FCGI, you'll need to use the wrappers),
which are defined in cgi/cgiwrap.h, cgiwrap_writef() and
cgiwrap_write().

Brandon

On 08/12/08 Jeevan uttered the following other thing:
> hello everyone.. hope all u r doing great.. i am new to this
> clearsilver.. Now, I am in need of a file upload and a file download..
> I cant find any more help from any other sites.. I have to use
> clearsilver c api's for this upload process.. Can any one help me to
> get a start with some sample codes....
> 
> Thanks in advance.
> jeevan
> 
> 
> ------------------------------------
> 
> Yahoo! Groups Links
> 
> 
> 
-- 
"... one suspects that a really good Pentagon spokesperson could deny
the very existence of all earthly and cosmic matter, if asked by a
superior to do so, with a straight face ..." -- Today's Suck, 6/11/98
http://www.fiction.net/blong/