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?
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.