Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why i can't get cookie from a special web site?

 
jieyun liu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



My question is: How can I get the cookie from the web site:http://www.csdn.net?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"hea ton", please check your private messages.
 
jieyun liu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Sturrock:
"hea ton", please check your private messages.


i have changed my name, is that right?
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by hea ton:
My question is: How can I get the cookie from the web site: http://www.csdn.net?[/b][/QB]

Cookie security rules say that only two places can get to a cookie.

1) the user can get them from his browser
2) a site can get those created for their domain

So the answer is to be on www.csdn.net and get them there
 
jieyun liu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, Pat. First, Thanks for your help.
But I am still in trouble.
I know where I shoule get the cookie from, But i don't know how.

you refer to the cookie security rules, can you give me some urls of books or references?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "the cookie"? That page doesn't set any cookies. It includes various elements that do so (images, iframes etc.) though; if you want to access the cookies set by those, then you'll need to load those elements in addition to the main page.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cookie rules are contained in RFC2965 - a google search will lead you straight to a copy of this standard.
Bill
 
jieyun liu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by William Brogden:
Cookie rules are contained in RFC2965 - a google search will lead you straight to a copy of this standard.
Bill


One Month ago, I have read the reference.
But I can not find the answer.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But I can not find the answer.

If the question is still the original one -how to get a cookie from that page- then I would have thought that my post answers that ... not so?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did the the cookie from "http://www.csdn.net" get set in the first place?

In what interaction did csdn.net get a request and send a response HTTP header setting a cookie?

What received the response containing the cookie?

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic