Skip to content Skip to sidebar Skip to footer

How To Log Onto A Https Website With Java?

I want to be able to log into HTTPS websites(like gmail) with my username/password using java code. I've tried using both my own code and the HTTPClient package(both allowed me to

Solution 1:

to sign into a https website you need to check your system time because the certificate is valid between 2 fixed dates


Solution 2:

You are talking about authentication or connecting to https server (without client auth)? Many sites (such as google, facebook) uses OAuth or OpenID - read about it. If its sth else (like you are using simply POST). What is the problem? Are you getting stacktrace?


Post a Comment for "How To Log Onto A Https Website With Java?"