Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #21292

Re: Web browser in java

Date 2013-01-10 08:46 +0000
From lipska the kat <"nospam at neversurrender dot co dot uk">
Organization Trollbusters 3
Newsgroups comp.lang.java.programmer
Subject Re: Web browser in java
References <79904e78-2885-4a7f-a3e2-f260ffb6063a@googlegroups.com> <50ecc3a6$0$293$14726298@news.sunsite.dk> <dq-dnQyWMeIBqXDNnZ2dnUVZ7qGdnZ2d@bt.com> <50ee2597$0$287$14726298@news.sunsite.dk>
Message-ID <J8mdnU6dDtd94nPNnZ2dnUVZ8l-dnZ2d@bt.com> (permalink)

Show all headers | View raw


On 10/01/13 02:21, Arne Vajhøj wrote:
> On 1/9/2013 4:12 AM, lipska the kat wrote:
>> On 09/01/13 01:10, Arne Vajhøj wrote:
>>> On 1/8/2013 7:19 AM, Roma Asnani wrote:
>>>> Want to create a web browser but unable to handle cookies can any one
>>>> help?
>>>> I get some source from this link
>>>> http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-JEditorPane.html

[snip]

> Given that the page used as starting point does
> not mention the word cookies and the code does
> not use any network code it all (it just use
> the setPage method with an URL), then that is not
> very likely.

Really, hmm... the clue is in the question isn't it

"but it display a simple browser but has no cookies or session handling"

This implies to me that the OP was confused as to the allocation of 
responsibility between the browser/client and the server when it comes 
to the implementation of a stateful interaction over a stateless 
protocol. Understanding the session cookie handling mechanism would 
inform the user of his misapprehension rather better than employing 
HttpClient which ... and I quote the documentation here

[features] Automatic Cookie handling for reading Set-Cookie: headers 
from the server and sending them back out in a Cookie: header when 
appropriate.

Or maybe you disagree.

lipska

-- 
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Web browser in java Roma Asnani <romaasnani@gmail.com> - 2013-01-08 04:19 -0800
  Re: Web browser in java lipska the kat <lipskathekat@yahoo.co.uk> - 2013-01-08 13:10 +0000
    Re: Web browser in java Arne Vajhøj <arne@vajhoej.dk> - 2013-01-09 21:31 -0500
      Re: Web browser in java lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-01-10 09:57 +0000
  Re: Web browser in java Arne Vajhøj <arne@vajhoej.dk> - 2013-01-08 20:10 -0500
    Re: Web browser in java lipska the kat <lipskathekat@yahoo.co.uk> - 2013-01-09 09:12 +0000
      Re: Web browser in java Arne Vajhøj <arne@vajhoej.dk> - 2013-01-09 21:21 -0500
        Re: Web browser in java lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-01-10 08:46 +0000
  Re: Web browser in java Roedy Green <see_website@mindprod.com.invalid> - 2013-01-09 11:20 -0800

csiph-web