Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
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:
JSP
URL reading problem
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi all,
I am trying to get the stream of an URL resource using java.net.URL. When I give the URL as below
URL url = new URL(<My URL> :wink: ; InputStream ins = url.url.openStream();
The above code throws HostNotFound Exception. But if I access the same URL from the IE browser I am getting the page displayed.
Can someone help me on this
Regards,
Sivaraman.L
Chetan Parekh
Ranch Hand
Posts: 3640
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Check example
here
.
My blood is tested +ve for Java.
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I found that I am inside a fire wall. I am able to access thro browser becz it goes thro a Proxy server. Is there anyway to route my
java
URL reading thro the proxy server
Regards,
Sivaraman.L
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Moved to the I/O forum.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Catch 22 - refactoring and writing a unit test
Stack overflow error in Javascript
Not able to add values in a database
How to make the window (JPanel?) bigger in gridbaglayout
Struts2 File Download Process
More...