LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-13-2009, 07:12 AM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
HTTP header cookies


Hi

There are 2 kinds of HTTP cookies: a normal cookie and a header cookie.

What are differencies?

What happens with the header cookie if the client is browsing over the proxy normally?

Last edited by cccc; 12-27-2009 at 10:59 AM.
 
Old 02-13-2009, 07:21 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
A cookie is a cookie. it comes from the server in an http header, it's written to disk by the browser, and then sent to the server on demand as an http header.
 
Old 02-13-2009, 07:31 AM   #3
*******
Member
 
Registered: Feb 2009
Posts: 63

Rep: Reputation: 16
Quote:
Originally Posted by cccc View Post
there are 2 kinds of HTTP cookies: a normal cookie and a header cookie?
This could make it a bit more transparent: http://www.cookiecentral.com/faq/#1.1 ?


Quote:
Originally Posted by cccc View Post
what happens with the header cookie if the client is browsing over the proxy normally?
The answer is "it depends": http://www.ietf.org/rfc/rfc2109.txt (see "4.2.3 Controlling Caching")?
 
Old 02-13-2009, 07:54 AM   #4
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Cookie-Related Headers

There are two headers, Set-Cookie and Cookie, that are related to cookies. The Set-Cookie header is sent by the server in response to an HTTP request, which is used to create a cookie on the user's system. The Cookie header is included by the client application with an HTTP request sent to a server, if there is a cookie that has a matching domain and path.

http://msdn.microsoft.com/en-us/libr...21(VS.85).aspx

greetings
cccc
 
Old 02-13-2009, 09:08 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by cccc View Post
Cookie-Related Headers

There are two headers, Set-Cookie and Cookie, that are related to cookies. The Set-Cookie header is sent by the server in response to an HTTP request, which is used to create a cookie on the user's system. The Cookie header is included by the client application with an HTTP request sent to a server, if there is a cookie that has a matching domain and path.

http://msdn.microsoft.com/en-us/libr...21(VS.85).aspx

greetings
cccc
Right, yes that's correct. Are we meant to comment on this?
 
Old 02-13-2009, 11:00 AM   #6
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by acid_kewpie View Post
Right, yes that's correct. Are we meant to comment on this?
yep
 
Old 02-13-2009, 01:19 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you're not making it easy for us are you? What you posted in that link is correct, and agrees with everything we've said. There is no comment to make.
 
Old 02-14-2009, 01:12 PM   #8
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
I still don't know what happens with the header cookie (request) if the client is browsing over the proxy?
my squid 3.0 PRE5 was setuped with default settings.
 
Old 02-14-2009, 03:21 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well nothing happens.. it just passes through unless your proxy is deliberatley meddling with it, in which case it's whatever your proxy of choice has been told to do with it. Why are you asking this? Is there an actual problem you can let us in on??
 
Old 02-20-2009, 11:39 AM   #10
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by acid_kewpie View Post
well nothing happens.. it just passes through unless your proxy is deliberatley meddling with it, in which case it's whatever your proxy of choice has been told to do with it. Why are you asking this? Is there an actual problem you can let us in on??
yep, there is a problem with dynamic .asp pages.
users browsing over the proxy getting this message:

Internet Explorer cannot display the webpage


we have squid 2.6.STABLE5 installed on Etch.
 
Old 02-20-2009, 11:42 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well why do you associate this with cookies? what is the source that they can't display? is it valid html?
 
Old 02-20-2009, 12:02 PM   #12
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by acid_kewpie View Post
well why do you associate this with cookies? what is the source that they can't display? is it valid html?
It was just a question abot cookies.
The client gets an header ID from the webserver.
There is valid HTML.

Last edited by cccc; 12-27-2009 at 01:38 PM.
 
Old 02-20-2009, 02:18 PM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Different question = different thread, please start a new thread if this is nothing to do with your original query.
 
Old 02-20-2009, 02:19 PM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Different question = different thread, please start a new thread if this is nothing to do with your original query.
 
  


Reply



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
http header quantt Programming 0 11-07-2008 09:15 PM
how to use cookies from tcp header to bypass login page kamariz Linux - Security 1 01-19-2007 08:04 PM
content-length HTTP header MPowers Linux - Software 0 04-07-2006 03:01 PM
forward IP based on http IP header freibuis Linux - Security 7 08-24-2004 12:21 AM
Accessing http header in PHP artois_val Programming 1 08-07-2004 10:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:20 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration