Mark Wallsgrov wrote:
>
>Hey,
>
>OK. The application will only communicate over HTTPS for a very brief
>amount of time. From what I can grasp from a brief look we are talking
>about 2 - 4 commands. The reason why I wanted to use Apache Mina is
>because it supports Asynchronous communication, which MSN needs.
>
>The rest of the packets that will be received are in a format such as:
>VER 1 MSNP8 CVR0\r\n
>I haven't used HTTP Client before, but from what I can see it is
>expecting a structured XML communication. Is this correct?
>
>BTW, thanks for your help :)
>
>Best Regards,
>Mark Wallsgrove
So, MSN is not using HTTPS, just TCP over SSL.
Writing a client that utilizes SSL is very similar to writing a server. The
main difference is that while initializing the SSL Filter you have to set:
sslFilter.setUseClientMode(true);
We use MINA for a client application...however the main reason we use it is
because we are simulating a large number of clients. Even for a single client,
it could still be worthwhile though if you like all of the filters and message
building features MINA provides.
Chris Popp