设置Cookie:??? [英] Set Cookie: ???
问题描述
你好,
我对用C编程很新,所以请原谅我的无知
这里。
我正在使用Redhat
发行版的Apache 1.3.27开发Redhat 7.3系统。我正在尝试编写一个例程,使用cgi
为用户登录网站,然后使用
设置会话cookie作为cookie的值。
我看过CGIC(Boutell)和CGI图书馆(Carson Harding),
看他们如何在浏览器中设置cookie,但是他们没有在我的
系统中工作。 CGI库适用于Internet Explorer,但不适用于Netscape。
CGIC也不适用。
CGIC和CGI库都使用Set-Cookie :命令,但我不能
让它上班。
我也看过CGI-LIB图书馆(Noel Aguilar),但这些
例程主要用于读取环境变量,因为
可以告诉我们。
有人可以给我一个基本的例子说明如何使用
Set-Cookie命令,或者告诉我在
浏览器中设置cookie的另一种方法,然后描述一种我可以回去阅读<的方法br />
cookie信息从客户端浏览器中退出?
谢谢,
Murrah Boswell
" WA Support" <苏***** @ wildapache.net>在消息中写道
新闻:3f ***************** @ news.wildapache.net ...你好,
我对使用C编程很新,所以请原谅我的无知
我正在使用Apache 1.3.27开发Redhat 7.3系统Redhat
发行版。我正在尝试编写一个例程,使用cgi
为用户登录网站,然后设置一个会话cookie,用户名作为cookie的值。
1.请学习Usenet礼仪。请参阅 www.usenet.org
这将告诉你:
a)在发布之前阅读小组的常见问题或''欢迎消息'。
comp.lang.c的欢迎消息是:
http://www.angelfire.com/ ms3 / bchambl ... me_to_clc.html
b)如果你想将相同的信息发布到超过
一组,交叉 - 发帖,不要向每个小组发布单独的消息
。
c)你的问题就像在
中一样偏离主题
我看到的另一组(alt.comp.lang.learn.c-c ++)
-Mike
< blockquote> Mike Wahler写道:
1.请
礼貌!那很好。
学习Usenet礼仪。请参阅 www.usenet.org
这将告诉您:< br)在发布之前阅读小组的常见问题或欢迎消息。
comp.lang.c的欢迎信息是:
http://www.angelfire.com/ms3/bchambl...me_to_clc.html
b)如果你想将相同的信息发布到超过一个组,交叉发布,不要向每个组发布单独的消息。< br)你的问题和我看到的另一组(alt.comp.lang.learn.c-c ++)
这个告诫可能没什么帮助。
你甚至没有把问题重定向到更合适的论坛。
最好不要回复。
听着,你的话题,但是在你的时候,你知道有谁卖了一个好的便宜的烤面包机吗?我有需要。
如果你有任何线索,请发电子邮件给我: cl ***@clord.net
谢谢大家,
CLord。
On Thu ,2003年9月18日,WA支持写道:
你好,
我是用C编程的新手,所以请原谅我的无知
这里。
我正在使用Redhat
发行版的Apache 1.3.27开发Redhat 7.3系统。我正在尝试编写一个例程,使用cgi
为用户登录网站,然后设置会话cookie,用户名作为cookie的值。
我看过CGIC(Boutell)和CGI图书馆(Carson Harding),看看他们如何在浏览器中设置cookie,但他们不能在我的
系统中工作。 CGI库适用于Internet Explorer,但不适用于Netscape。
CGIC也不适用。
CGIC和CGI库都使用Set-Cookie:命令,但我不能<让它工作。
我也看了CGI-LIB库(Noel Aguilar),但是这些
例程主要用于读取环境变量,就我而言>可以告诉。
有人可以给我一个如何使用
Set-Cookie命令的基本示例,或者向我展示在
浏览器中设置cookie的另一种方法,然后描述一种方法,我可以返回并从客户端浏览器中读取
cookie信息?
谢谢,
Murrah Boswell
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...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
这篇关于设置Cookie:???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!