Total members 11895 |It is currently Sun Dec 22, 2024 12:57 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





How do i accessing URL using java?, currently i am developing application
(background process) and i have to access the URL (not a webservice).




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 time

Using java.net package we can call the url from the java.


Code:
    URL           servletUrl     = new URL( (url);
    URLConnection servletConnect = servletUrl.openConnection();


_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 2 posts ] 

  Related Posts  to : How java access URL
 MS-Access with java     -  
 access modifiers in java     -  
 data access layer for java     -  
 HOW I Access the Parallel Port in Java?     -  
 correct syntax for access providers in java     -  
 java code to open word doc attached in ms access.db     -  
 Password Security Manager Access File Java     -  
 Access modifiers     -  
 Example of using access key with links     -  
 access element in array C++     -  



Topic Tags

Java Strings
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com