LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-08-2004, 06:56 PM   #1
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
Question C++ CGI scripts and Cookies


Yes I know WHAT a cookie is and HOW it works, but how do I code functions to work WITH cookies in C++? Every tutorial on line uses Perl ( ) and I just don't get what they are trying to say.

How do I set and get a value from a cookie using C/C++?
 
Old 11-09-2004, 04:51 PM   #2
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Rep: Reputation: 30
Try the set-cookie http header. I don't know about reading cookies, but I assume it should be similar. http://en.wikipedia.org/wiki/HTTP ... by the way, are you sure you want to do this in C++?
 
Old 11-09-2004, 06:36 PM   #3
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Original Poster
Rep: Reputation: 32
Thanks. Yes I am sure I want to do this via C++. This is because I already wrote myself a very handy CGI library.
 
Old 11-10-2004, 12:20 AM   #4
karlan
Member
 
Registered: Aug 2003
Location: San Francisco, California
Distribution: Slackware
Posts: 158

Rep: Reputation: 30
try cgicc: http://www.gnu.org/software/cgicc/cgicc.html

If you check http://karlan.us.to/devel/programming.cgi I have lots of random cgicc code, and even some custom cgi code :-D

Last edited by karlan; 11-10-2004 at 12:21 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SELinux and CGI Scripts silvercloud Linux - Enterprise 0 08-23-2005 11:35 PM
Forking CGI scripts narc Linux - Software 0 06-07-2005 10:58 PM
Getting CGI scripts to work Cool_Hand_Luke Linux - Newbie 5 03-09-2005 05:33 PM
CGI Cookies The_Nerd Programming 2 05-31-2004 11:00 AM
cant run cgi scripts jmdey Linux - Networking 1 01-07-2002 07:42 AM


All times are GMT -5. The time now is 01:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration