hey all, i have been racking my brain and researching for a few days now about this matter,
the thing is i want to be able to get information off the internet that has the https protocol,
i have created a login class and i have hardcoded some login details in it to test it, however, now it has got to the stage where i have to get information of a https website to complete the project.
i need to login to the https server from the java app and get timtable information off of it. i have looked at servelets and sockets and have no idea where to start, from what i have looked at i need to run something from the server side of things but i am not allowed to do this as it is a university site.
is there any possible way of getting the information just by logging in by the java app??
The HtmlUnit site has a "How do I" section with a "Getting Starting" page; see if that makes sense to you, and if you can get it to work for some web site of your choosing. You'll need to keep all the jar files that come with HtmlUnit in your classpath.
A confusing aspect might be that the library is meant for unit testing, so there are lots of references to jUnit that you kind of need to filter out.
The classes in the standard Java API for accessing HTTP websites are unfortunately not very powerful. Apache HttpClient is a library which makes this kind of thing easier. See the SSL Guide for information on how to use this for HTTPS.