This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Accessing the URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Accessing the URL" Watch "Accessing the URL" New topic
Author

Accessing the URL

Rajeev Muralidharan
Greenhorn

Joined: Oct 28, 2003
Posts: 9
All,
Here's a piece of code I've got to access a https site. It's fine as far as getting to the host. example: www.bankofrajeev.com But I need to go to a directory beyond the host like www.bankofrajeev.com/outbound. I need to use the SSLSocket and how can this be accomplished? Please help as I have to finish this project by today. My previous question didn't evoke any response and I think I've resolved it. So please do help!!!
SSLSocketFactory sf = sslContext.getSocketFactory();
System.out.println("created socket factory");
SSLSocket socket = (SSLSocket)sf.createSocket( host, port );
Rajeev.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Talking about directories sounds like you want files rather than a raw socket. Here's how I did it:

See if that helps!


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing the URL
 
Similar Threads
JSSE Problem, please help !!!
File transfer using HTTPS/SCP protocol
Thread Not Starting
Accessing HTTPS site using URL
Accessing a directory on a secure site