aspose file tools*
The moose likes Java in General and the fly likes how to bake your own cookies............ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to bake your own cookies............" Watch "how to bake your own cookies............" New topic
Author

how to bake your own cookies............

Max Huang
Greenhorn

Joined: Feb 22, 2003
Posts: 10
Hello to the best forum on the web site
I have a question, dont know if it belongs in this forum or another one. Here it is:
I was thinking about how you would program something and I don't know how it would be done. The idea is this: simply a go-between for someone trying to access a web site. So when they want to go to a web site, they request it from your web server instead, and then you go retreive it using the standard HTTP protocols.
For the basic case it is easy, but it can get tricky. what if you wanted to handle cookies? anyone have ideas on how that would be done?
I might implement this just for fun, but first i gotta find out how to do it and second of all i gotta find out if there is any useful application for it Maybe someone's already done it, in which case I wnat to know about all their design decisions
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
In JavaScript:

In servlets, "Cookie" is just a class in the J2EE API.
Article on Cookies
I am not sure what you are trying to DO with these cookies?
[ February 24, 2003: Message edited by: Cindy Glass ]

"JavaRanch, where the deer and the Certified play" - David O'Meara
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
Originally posted by Max Huang:
I have a question, dont know if it belongs in this forum or another one.

Totally confused. If you have a question, wouldn't it be nice if people can easily understand it? :roll:
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2771
    
  10

The question seems clear enough to me, but unfortunately I don't know the answer. Max wants to create a web page that can serve as a springboard for browsing. That is, when you first hit the page, it presents you with a form into which you type a URL, and then it displays that page for you. There used to be a site called something like SafeWeb that provided this service. Obviously, the main purpose was to allow browsing from work without the company knowing or being able to block where you went. However, I (also) used it to hit our servers from an outside client to make sure firewalls and such were configured correctly.
Max's point is what about cookies? They would be dropped on SafeWeb's server, and probably wouldn't be available to me the next time I hit the page. I would venture to guess that SafeWeb ignored this problem, but it is possible they relayed the cookies along with the HTML.
Max Huang
Greenhorn

Joined: Feb 22, 2003
Posts: 10
Hello again,
Yes Greg Charles, you hit the nail right on the head! That is what I am looking for. It is too bad you don't know the answer.
Now that you can read his clarification of my original question, Anyone have any suggestions??

Originally posted by Greg Charles:
The question seems clear enough to me, but unfortunately I don't know the answer. Max wants to create a web page that can serve as a springboard for browsing. That is, when you first hit the page, it presents you with a form into which you type a URL, and then it displays that page for you. There used to be a site called something like SafeWeb that provided this service. Obviously, the main purpose was to allow browsing from work without the company knowing or being able to block where you went. However, I (also) used it to hit our servers from an outside client to make sure firewalls and such were configured correctly.
Max's point is what about cookies? They would be dropped on SafeWeb's server, and probably wouldn't be available to me the next time I hit the page. I would venture to guess that SafeWeb ignored this problem, but it is possible they relayed the cookies along with the HTML.
Max Huang
Greenhorn

Joined: Feb 22, 2003
Posts: 10
By the way, there are also many other features in the web that I am interested in how to support.... anything involved in complex web content.
Originally posted by Max Huang:
Hello again,
Yes Greg Charles, you hit the nail right on the head! That is what I am looking for. It is too bad you don't know the answer.
Now that you can read his clarification of my original question, Anyone have any suggestions??


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to bake your own cookies............
 
Similar Threads
academic experience
Resume advice? Anyone?
Being passed over for a project
What do you know about delhijava
password protection