Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2007

Tip: Looking for answers? Try searching our database.

Java Browser and URL Connection

Thread view: 
Msj121 - 18 Sep 2007 16:00 GMT
Hi,
  Curious question:
    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?

  Should I only read from the data stream then? The problem with this
is that I am uploading a "file" to this website (using
httpurlConnection) and it will be displayed in a small applet (I am
trying 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 and
check based on past get/post (never tried anything like this so I do
appreciate the help -- which may be because its impossible (what im
starting to think)).
Andrew Thompson - 19 Sep 2007 00:11 GMT
...
>     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 in
Desktop that has a browse function, accepts an URI.

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Roedy Green - 19 Sep 2007 00:47 GMT
>     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 socket
numbers, but I would be surprised if is the scenario you described, if
a TCP/IP session were recycled.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.