I have the URL for a site that will send a page. When I type the URL into a new browser and press enter, the page is sent. I am trying to do this now with my java program. I have done the following, but the page is not sent: URL url = new URL("http://myurl");
URLConnection connection = url.openConnection(); connection.connect(); Does anyone have any ideas what I am doing wrong? THanks!
I guess that's part of my question. There is currently an existing site that will send a page message. I have the URL for this site. When I type this URL into a browser, a page is sent to my pager. I would like to replicate this and have my code connect to this same URL so that the page will be sent to my pager. I thought all I needed to do was to use the URLConnection class to connect to the URL. I don't need to read anything from the site. Is there something else that I should be doing besides just connecting to that site?