English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how to communicate with https server via sockets.
if i want to automate interaction with a website...
like authenticating then clicking links, parsing info presented by html etc

for example to communicate with https://icicidirect.com
i want my application to automatically login and retieve data
so that i can use it in my own way.

also later it should submit requests ( like clicking buttons) and enter other data which normally is done by human using keyboard and mouse on the website.

i need my application to do this.

2007-03-18 06:40:07 · 2 answers · asked by munishgoyal 1 in Computers & Internet Programming & Design

how to communicate with https server via sockets.
if i want to automate interaction with a website...
like authenticating then clicking links, parsing info presented by html etc delete

rocky Mar 18(17 hours ago):
java very well provides u the SSL things to make
secure connection..............
It is a threeway handshaking kind of stuff involves
mutual sharing of certificates.............
java gives X.509 certificates...........
i dont think u can have access to yahoo mail, hot mail...........which needs https connection..........
You authentication will fail as it is not certificated
by VeriSign(certificate issuing authority)only certified browsers like I-Explore,firefox can have access.....................

munish :
but then if i have to create an application making https connection,
then do i have to parse the source code of the html page received from the server (like yahoo) and then find o be submitted and send response as GET/POST request for logging

2007-03-19 00:06:39 · update #1

2 answers

You simply need to import the java.net library and in there is a socket class. I have included a link below that will show you examples of setting up sockets to other servers, reading and writing to the socket, and how to make a client program that interacts with servers.

It's there for your absorption. Enjoy!

2007-03-18 12:32:34 · answer #1 · answered by Martyr2 7 · 0 0

HTTPS is not the same as HTTP. Authentication and key exchange must occur to set up a secure connection.

See this site for doing so with the javax.net.ssl extension package.
http://java.sun.com/products/jsse/index.jsp

And here for an Apache library to make working with it easier:
http://jakarta.apache.org/commons/httpclient/sslguide.html

2007-03-19 00:35:42 · answer #2 · answered by vincentgl 5 · 0 0

fedest.com, questions and answers