Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
Calling a URL
Vishnu Vardhan
Greenhorn
Posts: 14
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I need some help in calling a URL from a
JAVA
program. Can anyone send me a sample code please.
Regards
Vishnu
Detlev Beutner
Ranch Hand
Posts: 76
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello Vishnu,
I'm not sure, but I hope you are thinking of somethng like this:
URL yourURL = new URL("http://some.nice.url/you/like/to/open"); URLConnection yourConnection = yourURL.openConnection(); // now you can handle this connection, for example: InputStream yourIS = yourConnection.getInputStream();
In this case, please refer to the API-DOC for further information.
Hope it helps
Detlev
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Virtual path not working in url
Problem: application.ViewHandlerImpl: Found no URL patterns mapping to FacesServlet
threads
uploading page to web - begginner
Find out which jsp page called the concerned page
More...