• 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

Accessing a directory on a secure site

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rajeev Muralidharan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please do close the thread. I am doing
SSLSocket socket =
(SSLSocket)sf.createSocket(url.getHost(), 443); to get to the directory.
Thansk all for your time.
 
Think of how dumb the average person is. Mathematically, half of them are EVEN DUMBER. Smart tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic