URL Connection in Applet and Socket connection in Server
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Annapurna_B
Posted On:   Friday, April 27, 2001 02:19 AM

I have an applet that uses an URL connection to connect to ther server listening using a socket connection at some port.I want to write data to the server and get data from the server to the client. Can you please let me how it can be made possible.

Also I have a doubt.. the URL class in Java has one constructor with paramters URL(URL context,String spec).Can anyone tell me what should be passed for the parameter spec to this constructor.

Re: URL Connection in Applet and Socket connection in Server

Posted By:   Tim_Rohaly  
Posted On:   Friday, April 27, 2001 03:38 PM

When you have more than one distinct question, please
post them separately.

1) URLConnection is used for certain, specific protocols,
like HTTP. There are a number of Networking FAQs
which will show you how to send and receive data via
HTTP using URLConnection. Please search the FAQ for
them.

2) The use of that constructor is well documented in
the API documentation. Reference is also given to
the URL RFC, which you can read if some of the terms
are unfamiliar to you.
About | Sitemap | Contact