+ 3

JAVA how to make a simple client that sends https request to get all lines of html from a server.

with http is simple but I have no idea on how to implement an https request with ssl in java. Any of you willing to help?

17th Jan 2017, 8:53 AM
seamiki
seamiki - avatar
3 Antworten
+ 1
u can use JSON parser or if u want it simple, use the JSOUP library
18th Jan 2017, 6:16 PM
Chahat Gupta
Chahat Gupta - avatar
+ 2
For anyone who could be interested: I found this "workaround" at http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/. As said is only a workaround because it disables certificate validation, but for testing purpose it gets the Job done: get the Html content from https sites. The journey is not over yet, whoever wants to share his/her experience with https ssl connection will help me a lot.
23rd Jan 2017, 10:42 AM
seamiki
seamiki - avatar
+ 1
Thanks for the answer but the problem here is connecting to a website with ssl encryption. As I stated in the post http requests are easy, https are the complicate one as you have to handle the security layer between client and server. handshaking, certificate check, encryption key ecc...
18th Jan 2017, 7:08 PM
seamiki
seamiki - avatar