Java Browser and URL Connection

  • Follow


Hi,   Curious question:     Assuming I open an HTTPUrlConnection to a website with a "KeepAlive" session, is it possible when i use ...getDesktop().browse(....)-- will the httpurlconnection that i am posting to be "received" (get)by the browser. My main question is whether its the same session?   Should I only read from the data stream then? The problem with thisis that I am uploading a "file" to this website (usinghttpurlConnection) and it will be displayed in a small applet (I amtrying to use maps.google.com to be specific). I can post some code(especially when im done), but at the moment its sadly some guess andcheck based on past get/post (never tried anything like this so I doappreciate the help -- which may be because its impossible (what imstarting to think)).
0
Reply msj121 (11) 9/18/2007 3:00:30 PM

Msj121 wrote:...>     Assuming I open an HTTPUrlConnection to a website with a "Keep>Alive" session, is it possible when i use ...getDesktop().browse(....)That is a big assumption, given the only method inDesktop that has a browse function, accepts an URI.-- Andrew Thompsonhttp://www.athompson.info/andrew/Message posted via http://www.javakb.com
0
Reply Andrew 9/18/2007 11:11:28 PM


On Tue, 18 Sep 2007 08:00:30 -0700, Msj121 <msj121@hotmail.com> wrote,quoted or indirectly quoted someone who said :>     Assuming I open an HTTPUrlConnection to a website with a "Keep>Alive" session, is it possible when i use ...getDesktop().browse(....)>-- will the httpurlconnection that i am posting to be "received" (get)>by the browser. My main question is whether its the same session?You could well get a second copy of the browser running. Each HTTP GET/PUT is logically a single session.  Under the covers,sometimes a session gets recycled, but logically it is a new session.I suppose you could do some experiments looking an underlying socketnumbers, but I would be surprised if is the scenario you described, ifa TCP/IP session were recycled.-- Roedy Green Canadian Mind ProductsThe Java Glossaryhttp://mindprod.com
0
Reply Roedy 9/18/2007 11:47:14 PM

2 Replies
220 Views

(page loaded in 0.057 seconds)

Similiar Articles:













7/21/2012 3:32:33 AM


Reply: