• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is SSLSocket mandatory to use with https?  RSS feed

 
Pranav Pal
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a server running for requests from client.
Client will send requests using cURL or browser and it uses HTTPS protocol.
In this case, is it mandatory for my server to use SSLSocket for establishing a connection or a normal Socket would work?
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unless you have specific reasons to use sockets, it'd be easier to use the URL class -to which you can pass an HTTPS URL-, and then to get the connection from the URL object.
 
Pranav Pal
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I have to use sockets, does it have to be SSLSocket?
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SSLSockets know how to handle SSL, and that's what you want to achieve, correct? Standard sockets know nothing about SSL.
 
Pranav Pal
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the replies, Lester.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!