Hello,
I am fairly new to programming in C, so please excuse my ignorance
here.
I am working on a Redhat 7.3 system with Apache 1.3.27 from the Redhat
distribution running. I am trying to write a routine that uses cgi
for a user to login to a website and then set a session cookie with
the username as the value of the cookie.
I have looked at CGIC (Boutell) and the CGI Library (Carson Harding),
to see how they set cookies in a browser, but they don't work in my
system. CGI Library works for Internet Explorer, but not Netscape.
CGIC doesn't work for either.
Both CGIC and CGI Library use the Set-Cookie: command, but I can not
get it to work.
I have also looked at CGI-LIB Library (Noel Aguilar), but these
routines are primarily for reading environment variables as far as I
can tell.
Could someone please give me a basic example of how to use the
Set-Cookie command, or show me another way to set cookies in a
browser, and then describe a way that I can go back and read the
cookie information back out of a client browser?
Thanks,
Murrah Boswell 25 5519
"WA Support" <su*****@wildapache.net> wrote in message
news:3f*****************@news.wildapache.net... Hello,
I am fairly new to programming in C, so please excuse my ignorance here.
I am working on a Redhat 7.3 system with Apache 1.3.27 from the Redhat distribution running. I am trying to write a routine that uses cgi for a user to login to a website and then set a session cookie with the username as the value of the cookie.
1. Please learn Usenet etiquette. See www.usenet.org
This will tell you :
a) read a group's FAQ or 'welcome message' before posting.
The welcome message for comp.lang.c is: http://www.angelfire.com/ms3/bchambl...me_to_clc.html
b) if you want to post the same message to more than
one group, cross-post, don't post separate messages
to each group.
c) that your question is just as off-topic here as in
the other group I saw it (alt.comp.lang.learn.c-c++)
-Mike
Mike Wahler wrote: 1. Please
Polite! That's good.
learn Usenet etiquette. See www.usenet.org
This will tell you :
a) read a group's FAQ or 'welcome message' before posting. The welcome message for comp.lang.c is: http://www.angelfire.com/ms3/bchambl...me_to_clc.html
b) if you want to post the same message to more than one group, cross-post, don't post separate messages to each group.
c) that your question is just as off-topic here as in the other group I saw it (alt.comp.lang.learn.c-c++)
This admonition probably wasn't helpful.
You didn't even redirect the question to a more appropriate forum.
It would probably have been better not to respond at all.
Listen, your off topic, but while you are, do you know anybody selling a
good cheap toaster? I'm in need.
E-mail me if you've got any leads: cl***@clord.net
Thanks guys,
CLord.
On Thu, 18 Sep 2003, WA Support wrote: Hello,
I am fairly new to programming in C, so please excuse my ignorance here.
I am working on a Redhat 7.3 system with Apache 1.3.27 from the Redhat distribution running. I am trying to write a routine that uses cgi for a user to login to a website and then set a session cookie with the username as the value of the cookie.
I have looked at CGIC (Boutell) and the CGI Library (Carson Harding), to see how they set cookies in a browser, but they don't work in my system. CGI Library works for Internet Explorer, but not Netscape. CGIC doesn't work for either.
Both CGIC and CGI Library use the Set-Cookie: command, but I can not get it to work.
I have also looked at CGI-LIB Library (Noel Aguilar), but these routines are primarily for reading environment variables as far as I can tell.
Could someone please give me a basic example of how to use the Set-Cookie command, or show me another way to set cookies in a browser, and then describe a way that I can go back and read the cookie information back out of a client browser?
Thanks, Murrah Boswell
Excuse me, but how is it off topic in a C language group to ask a C
programming question?
Also, do you know that answer to my original question?
Murrah Boswell
On Thu, 18 Sep 2003 21:17:31 GMT, "cl***@clc.net" <cl***@clc.net>
wrote:
Listen, your off topic, but while you are, do you know anybody selling a good cheap toaster? I'm in need.
E-mail me if you've got any leads: cl***@clord.net
Thanks guys, CLord. On Thu, 18 Sep 2003, WA Support wrote:
Hello,
I am fairly new to programming in C, so please excuse my ignorance here.
I am working on a Redhat 7.3 system with Apache 1.3.27 from the Redhat distribution running. I am trying to write a routine that uses cgi for a user to login to a website and then set a session cookie with the username as the value of the cookie.
I have looked at CGIC (Boutell) and the CGI Library (Carson Harding), to see how they set cookies in a browser, but they don't work in my system. CGI Library works for Internet Explorer, but not Netscape. CGIC doesn't work for either.
Both CGIC and CGI Library use the Set-Cookie: command, but I can not get it to work.
I have also looked at CGI-LIB Library (Noel Aguilar), but these routines are primarily for reading environment variables as far as I can tell.
Could someone please give me a basic example of how to use the Set-Cookie command, or show me another way to set cookies in a browser, and then describe a way that I can go back and read the cookie information back out of a client browser?
Thanks, Murrah Boswell
"WA Support" <su*****@wildapache.net> wrote in message
news:3f*****************@news.wildapache.net... Excuse me, but how is it off topic in a C language group to ask a C programming question?
Yours was not a C question, it was a question about
browsers and cookies. C has no knowledge of or
support for such. As I've already asked, please
see: http://www.angelfire.com/ms3/bchambl...me_to_clc.html
before posting here again. Also, do you know that answer to my original question?
Anyone that does should not respond here.
We only discuss (ISO standard) C here.
To both you and 'CLord': Please don't top post.
Thank you.
-Mike
Okay, I read the 'welcome message' and read http://www.albion.com/netiquette/corerules.html, but I still don't
understand why you guys think that I am off topic?
I have asked a perfectly legitimate C question about writing CGI
scripts, and then in those scripts, how to set cookies in a client
browser through Apache.
What of this is off topic?
Murrah Boswell
On Thu, 18 Sep 2003 19:03:36 GMT, "Mike Wahler"
<mk******@mkwahler.net> wrote: "WA Support" <su*****@wildapache.net> wrote in message news:3f*****************@news.wildapache.net... Hello,
I am fairly new to programming in C, so please excuse my ignorance here.
I am working on a Redhat 7.3 system with Apache 1.3.27 from the Redhat distribution running. I am trying to write a routine that uses cgi for a user to login to a website and then set a session cookie with the username as the value of the cookie.
1. Please learn Usenet etiquette. See www.usenet.org
This will tell you :
a) read a group's FAQ or 'welcome message' before posting. The welcome message for comp.lang.c is: http://www.angelfire.com/ms3/bchambl...me_to_clc.html
b) if you want to post the same message to more than one group, cross-post, don't post separate messages to each group.
c) that your question is just as off-topic here as in the other group I saw it (alt.comp.lang.learn.c-c++)
-Mike
On Thu, 18 Sep 2003, WA Support wrote: Okay, I read the 'welcome message' and read http://www.albion.com/netiquette/corerules.html, but I still don't understand why you guys think that I am off topic?
I have asked a perfectly legitimate C question about writing CGI scripts, and then in those scripts, how to set cookies in a client browser through Apache.
What of this is off topic?
The "CGI" part. The "cookies" part. The "browser" part. The "Apache"
part. And, of course, the top-posting part. Please put your response
*below* the text to which you are responding.
A: Because if everything were written that way, it
would be hard to read.
Q: Why does everyone always say not to top-post?
If you have a question about the C language, or about the C standard,
or about the topicality of this newsgroup in particular; *and* your
question is not already covered by the FAQ; then by all means, go ahead
and ask it here. We'll try to help.
For your original question, you might try plugging the keywords
"CGI", "Apache" "SetCookie" into the search box at www.google.com
and seeing what comes back. Sorry we can't be of more help here.
-Arthur
Right, sorry Mike; I keep forgetting to not top post.
(It's a bad habbit of mine)
On Thu, 18 Sep 2003, Mike Wahler wrote:
"WA Support" <su*****@wildapache.net> wrote in message news:3f*****************@news.wildapache.net... Excuse me, but how is it off topic in a C language group to ask a C programming question?
Yours was not a C question, it was a question about browsers and cookies. C has no knowledge of or support for such. As I've already asked, please see: http://www.angelfire.com/ms3/bchambl...me_to_clc.html before posting here again. Also, do you know that answer to my original question?
Anyone that does should not respond here. We only discuss (ISO standard) C here.
To both you and 'CLord': Please don't top post. Thank you.
-Mike
WA Support wrote: Excuse me, but how is it off topic in a C language group to ask a C programming question?
Also, do you know that answer to my original question?
You can't do it in C. You have to use some sort of platform-specific
extension. So it's off-topic here. Did you read the Welcome message?
Brian Rodenborn
"cl***@clc.net" <cl***@clc.net> writes: Listen, your off topic, but while you are, do you know anybody selling a good cheap toaster? I'm in need.
E-mail me if you've got any leads: cl***@clord.net
Thanks guys, CLord.
Clord, you stopped being funny a long time ago. Please go away.
--
Keith Thompson (The_Other_Keith) ks*@cts.com <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://www.sdsc.edu/~kst>
Schroedinger does Shakespeare: "To be *and* not to be" su*****@wildapache.net (WA Support) wrote: Okay, I read the 'welcome message' and read http://www.albion.com/netiquette/corerules.html, but I still don't understand why you guys think that I am off topic?
I have asked a perfectly legitimate C question about writing CGI scripts, and then in those scripts, how to set cookies in a client browser through Apache.
What of this is off topic?
Because standardized C is the one and only topic here.
Writing CGI scripts to set cookies via apache is not covered by
the C standards - IOW: you have to use implementation-/OS-/application-
dependent extensions to the C language to accomplish your task, and
these are definitely off-topic in comp.lang.c. You should therefore
ask in a newsgroup dedicated to such things.
If, OTOH, you run into problems when writing the actual C code, feel
free to post a reasonable small chunk of example code (with all
non-standard constructs stripped) which exhibits your problem and you
will get help from a lot of people here in c.l.c.
But before doing so, you may want to take a look at the c.l.c-faq,
containing lots of valuable information; it can be accessed at: http://www.eskimo.com/~scs/C-faq/top.html
Regards
Irrwahn
--
My other computer is a abacus.
On Thu, 18 Sep 2003, WA Support wrote: Excuse me, but how is it off topic in a C language group to ask a C programming question?
Shut-up Donny, your out of your element! Oh, wait a minute, I was having
"Big Labowski" flashbacks. Your not Donny, are you? Also, do you know that answer to my original question?
Can't really remember what it was. Could you re-post it in the form of a
question, sorta like Jeopardy?
But hey, what about my spatula? I'm in the market for a good stainless
steel spatula and thought that this forum, clc, might be the place to find
one. There are so many out there tossing shit around anyway.
clord Murrah Boswell
On Thu, 18 Sep 2003 21:17:31 GMT, "cl***@clc.net" <cl***@clc.net> wrote:
Listen, your off topic, but while you are, do you know anybody selling a good cheap toaster? I'm in need.
E-mail me if you've got any leads: cl***@clord.net
Thanks guys, CLord. On Thu, 18 Sep 2003, WA Support wrote:
Hello,
I am fairly new to programming in C, so please excuse my ignorance here.
I am working on a Redhat 7.3 system with Apache 1.3.27 from the Redhat distribution running. I am trying to write a routine that uses cgi for a user to login to a website and then set a session cookie with the username as the value of the cookie.
I have looked at CGIC (Boutell) and the CGI Library (Carson Harding), to see how they set cookies in a browser, but they don't work in my system. CGI Library works for Internet Explorer, but not Netscape. CGIC doesn't work for either.
Both CGIC and CGI Library use the Set-Cookie: command, but I can not get it to work.
I have also looked at CGI-LIB Library (Noel Aguilar), but these routines are primarily for reading environment variables as far as I can tell.
Could someone please give me a basic example of how to use the Set-Cookie command, or show me another way to set cookies in a browser, and then describe a way that I can go back and read the cookie information back out of a client browser?
Thanks, Murrah Boswell
On Thu, 18 Sep 2003, Keith Thompson wrote: "cl***@clc.net" <cl***@clc.net> writes: Listen, your off topic, but while you are, do you know anybody selling a good cheap toaster? I'm in need.
E-mail me if you've got any leads: cl***@clord.net
Thanks guys, CLord.
Clord, you stopped being funny a long time ago. Please go away.
Then why am I still laughing?
On Thu, 18 Sep 2003, Mike Wahler wrote:
"WA Support" <su*****@wildapache.net> wrote in message news:3f*****************@news.wildapache.net... Excuse me, but how is it off topic in a C language group to ask a C programming question? Yours was not a C question, it was a question about browsers and cookies.
I like to browse for cookies at the groceries store. They have a wide
selection.
C has no knowledge of or support for such.
Really? I thought 'C' was a living, breathing entity fully equipped with
its own mental faculties of reasoning and emotion.
I have a lot to learn Mike. Say hello to "C" for me. http://www.angelfire.com/ms3/bchambl...me_to_clc.html before posting here again. Also, do you know that answer to my original question? Anyone that does should not respond here. We only discuss (ISO standard) C here.
Maybe you do, but I have often come here to discuss poetry, art, and even
meditation. You should see the things Joona has to say about
transendental meditation. It's enlightening.
By the way, any luck with that spatula? To both you and 'CLord': Please don't top post. Thank you.
I'll try, Mike, but it makes me giddy with joy thinking of all the stiff
necks out there who think they invented usenet (like you) and would love
to flame me for doing it.
Come on Mike, admit it, if it weren't for all the flames you post in here
about top posting you'd have nothing else to say. Lord knows you you
couldn't tell the difference between a pointer and the head of your dick
if you were standing naked at the World's First Naked Mrs. Ansi C Contest. -Mike
Your Pal,
clord.
In article <3F**************@jpl.nasa.gov>, E.**************@jpl.nasa.gov
says... This admonition probably wasn't helpful. You didn't even redirect the question to a more appropriate forum. It would probably have been better not to respond at all.
This admonition probably wasn't helpful.
You didn't even redirect the question to a more appropriate forum.
It would probably have been better not to respond at all.
--
Randy Howard _o
2reply remove FOOBAR \<,
______________________()/ ()______________________________________________
SCO Spam-magnet: po********@sco.com
"WA Support" <su*****@wildapache.net> wrote in message
news:3f*****************@news.wildapache.net... Okay, I read the 'welcome message' and read http://www.albion.com/netiquette/corerules.html, but I still don't understand why you guys think that I am off topic?
I have asked a perfectly legitimate C question about writing CGI scripts, and then in those scripts, how to set cookies in a client browser through Apache.
As we've repeatedly told you, it's not a question about C.
It's a question about CGI, cookies, browsers, and Apache.
None of which are part of C. What of this is off topic?
CGI
cookies
browser
Apache
Did you not read the welcome message folks have been
referring you too? Please do so before posting here
again. Here's the link again: http://www.angelfire.com/ms3/bchambl...me_to_clc.html
Do you want your problem solved? If so, ask where
it's topical. Or do you just want to argue?
And yet again, I ask you to please not top-post.
-Mike
clord <cl***@clord.net> scribbled the following: Maybe you do, but I have often come here to discuss poetry, art, and even meditation. You should see the things Joona has to say about transendental meditation. It's enlightening.
I have things to say about that nowadays?
--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"I said 'play as you've never played before', not 'play as IF you've never
played before'!"
- Andy Capp
Keith Thompson <ks*@cts.com> wrote: Clord, you stopped being funny a long time ago. Please go away.
All trolls stopped being funny the day they were born. Please stop
feeding them; Usenet is not a petting zoo.
Richard
On Thu, 18 Sep 2003 21:17:31 GMT, in comp.lang.c , "cl***@clc.net"
<cl***@clc.net> wrote: Listen, your off topic, but while you are, do you know anybody selling a good cheap toaster? I'm in need.
You may want to consider that you're in breach of your ISP's AUP,
assuming that Telus are indeed your ISP.
Plus, if you or your parent actually work for Creative Link Corp,
they're likely to take a dim view of this sort of post.
If you're not careful someone will report you to one or other of the
above, and then your dad will be cross because he'll lose his internet
account and possibly his job.
(And if your IP is totally falsified, then you're committing a
criminal offense, both here, in Canada and in Japan. Good luck.)
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>
On Thu, 18 Sep 2003 23:30:19 GMT, in comp.lang.c , clord
<cl***@clord.net> wrote: On Thu, 18 Sep 2003, Keith Thompson wrote:
Clord, you stopped being funny a long time ago. Please go away.
Then why am I still laughing?
I dunno, why /do/ idiots keep laughing all the time?
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>
On 19 Sep 2003 06:32:27 GMT, in comp.lang.c , Joona I Palaste
<pa*****@cc.helsinki.fi> wrote: clord <cl***@clord.net> scribbled the following: Maybe you do, but I have often come here to discuss poetry, art, and even meditation. You should see the things Joona has to say about transendental meditation. It's enlightening.
I have things to say about that nowadays?
Not transformers, transendental.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>
On Thu, 18 Sep 2003 22:43:42 GMT, in comp.lang.c , su*****@wildapache.net (WA Support) wrote: Okay, I read the 'welcome message' and read http://www.albion.com/netiquette/corerules.html, but I still don't understand why you guys think that I am off topic?
http://www.angelfire.com/ms3/bchambl...me_to_clc.html
I have asked a perfectly legitimate C question about writing CGI scripts,
Since when has CGI been anything to do with C?
and then in those scripts, how to set cookies
since when have cookies been part of C?>
in a client browser through Apache.
since when have browsers and Apache been part of C?
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>
Randy Howard wrote: E.**************@jpl.nasa.gov says...
< This admonition probably wasn't helpful. You didn't even redirect the question to a more appropriate forum. It would probably have been better not to respond at all.
This admonition probably wasn't helpful. You didn't even redirect the question to a more appropriate forum. It would probably have been better not to respond at all.
Please ignore ERT.
--
Replies should be to the newsgroup
Chuck Falconer, on vacation.
On 19 Sep 2003 23:06:40 GMT, in comp.lang.c , Alex
<al*******@hotmail.com> wrote: Mark McIntyre <ma**********@spamcop.net> wrote: On Thu, 18 Sep 2003 22:43:42 GMT, in comp.lang.c , su*****@wildapache.net (WA Support) wrote:
Okay, I read the 'welcome message' and read http://www.albion.com/netiquette/corerules.html, but I still don't understand why you guys think that I am off topic?
http://www.angelfire.com/ms3/bchambl...me_to_clc.html
My eyes may be failing me, but did he not just mention that he has read the welcome message? :-)
Evidently he didn't read the right welcome message, or he'd have read
this:
please keep in mind that comp.lang.c is a group for discussion
of general issues of the C programming language, as defined by the
ANSI/ISO language standard. If you have a problem that is specific to
a particular system or compiler, you are much more likely to get
complete and accurate answers in a group that specializes in your
platform.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Shannon Jacobs |
last post by:
I'm doing some trivial surveys, and I want to know if the same user
answers twice. Can't really know that, but at least I thought I could
check for the same browser/computer combination by using a...
|
by: chrism |
last post by:
Hello,
I have a pop-up window that I would like to appear in front of the
browser home page when a user opens IE. Problem is, I'd like it to
never appear again if the user navigates back to the...
|
by: brettr |
last post by:
When I reference document.cookie, there is a long string of key=value;
pairs listed. I may have 100 hundred cookies on my hard drive.
However, most only have one key=value pair. Does the...
|
by: socialism001 |
last post by:
I'm trying to store a value in a cookie but its not working. Can
anyone see what I might be doing wrong.
Thanks,
Chris
~~~~~~~~~~~~~~~~~~
<script language="javascript">...
|
by: Marco Krechting |
last post by:
Hi All,
I have a page with a list of hyperlinks.
I want to save information in a cookie about the fact that I entered an
hyperlink or not.
When I click one of the hyperlinks I want this stored...
|
by: Wysiwyg |
last post by:
After a server created cookie is processed on the client I want it removed,
cleared, or expired in the javascript block but have been unable to do this.
If I set a cookie value in the server code...
|
by: CR1 |
last post by:
I found a great cookie script below, but don't know how to make it also pass the values sent to the cookie, to a querystring as well for tracking purposes. Can anyone help? If there was a way to...
|
by: kelvlam |
last post by:
Hello all,
I'm still a bit new with JavaScript, and I hope the guru here can shed
some light for me. It's regarding handling cookie and the
case-sensitive nature of JavaScript itself.
My...
|
by: kelly.pearson |
last post by:
Is this a bug? I am trying to write a cookie that can be accessed by
various .Net applications on our domain. However, whenever I add the
domain property to the cookie, no errors get thrown but...
|
by: cbhoem |
last post by:
Hi -
I am trying my hand at python cookies. I'm confused about a few
things though. Do the python cookies get written to a cookies text
file? I have simple code below -- I see the cookie in...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |