Hey guys,

Thanks for the replies! Actually I was wrong with the XML structured
communication. It is using HTTPS:

<<< HTTP/1.1 302 Found\r\n
<<< Server: Microsoft-IIS/5.0\r\n
<<< Date: Mon, 02 Jun 2003 11:58:32 GMT\r\n
<<< PPServer: H: LAWPPLOG5C006\r\n
<<< Connection: close\r\n
<<< Content-Type: text/html\r\n
<<< Expires: Mon, 02 Jun 2003 11:57:32 GMT\r\n
<<< Cache-Control: no-cache\r\n
<<< cachecontrol: no-store\r\n
<<< Pragma: no-cache\r\n
<<< P3P: CP="DSP CUR OTPi IND OTRi ONL FIN"\r\n
<<< Authentication-Info: Passport1.4 da-status=redir\r\n
<<< Location: https://loginnet.passport.com/login2.srf?lc=1033\r\n
<<< \r\n

But, that shouldn't be too hard to parse.

How much do you have to configure with the SSL connection? I was just
reading the example that David linked me too and it seams that it has
>~ 7 files. How have you implemented the filter Chris?

Best Regards,
Mark Wallsgrove

Best Regards,
Mark Wallsgrove

2009/10/5 Christopher Popp <[email protected]>:
> 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
>
>
>



-- 
Best Regards,
Mark Wallsgrove

Reply via email to