i have some questions regarding URL class in java.net ,
i have 2 q's
by using URL class we can download and upload data via http protocol just like what we do using ftp protocol ?
suppose i have a code where i m using URL class to connect to localhost 127.0.0.1 through an http protocol so by default this code will conect to port 80 right ? ,
but the big question is who will receive the data , if suppose i send some data like string ? i m asking this because using socket and server socket we know with whom we are connected or communicating and the server socket (server ) will receive our data and do some processing
but who will receive the data in case of URL class ?