- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Retrieve contents of URL.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 02:20 AM
07-30-2002 02:20 AM
Retrieve contents of URL.
Starting...
Openning URL connection (http://www.google.co.uk/index.html:8888)
Connecting to URL
java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.
at java.net.Socket.
at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:335)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:521)
at sun.net.www.http.HttpClient.
at sun.net.www.http.HttpClient.
at sun.net.www.http.HttpClient.New(HttpClient.java:293)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:407)
at URLTest.
at URLTest.main(URLTest.java:43)
Any help would be appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 03:19 AM
07-30-2002 03:19 AM
Re: Retrieve contents of URL.
I can only see from your stack trace dump that the exception threw that your java prog is trying to connect on port 8888.
When I try to connect to the URL on that port I get the dreaded 400 Server Error.
I think there is no http server listening on that port.
Maybe you should try to call a method that assigns the propper port (presumably 80) to your socket?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 03:29 AM
07-30-2002 03:29 AM
Re: Retrieve contents of URL.
But maybe just a wrong concatenation?
Wasn't it
protocol://host.domain:port/document
?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 05:41 AM
07-30-2002 05:41 AM
Re: Retrieve contents of URL.
The bad news - your code runs fine for me :-)
So, 2 things:
1)
I agree with above re: the 8888 thing - the URL string should be http://www.google.co.uk/index.html, or if you are getting even more specific, http://www.google.co.uk:80/index.html. If you are not hard coding this string into your program then you need to find out why it's trying that :8888 thing at the end.
2)
You're behind a firewall maybe? If you are, this will not work, but you may want to try and point your test script to an internal web server to prove to yourself the program works.
Cheers!
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 11:00 PM
07-30-2002 11:00 PM
Re: Retrieve contents of URL.
Error should have read
http://www.google.co.uk/index.html
8888 was the result of a previous trial, and is not hard coded in attached java script.
I'm currently trying to access an intranet URL to check if it is a proxy issue?
regards
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 11:40 PM
07-30-2002 11:40 PM
Re: Retrieve contents of URL.
Does anyone know of an equivalent to NTLM or auto bypass proxy such as winsock for NT?
regards
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 02:13 AM
07-31-2002 02:13 AM
Re: Retrieve contents of URL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 02:53 AM
07-31-2002 02:53 AM
Re: Retrieve contents of URL.
Cheers!
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2002 01:38 AM
08-02-2002 01:38 AM
Re: Retrieve contents of URL.
regards
Brian