Hi,
I've worked on a small project, I need to create an MSN client. I have tried but could not achieve much... I will be really happy if someone help me. I using Visual Basic winsock to connect to the MSN protocol. But as in the following report, I get "401 Unauthorized" error. Where am I doing wrong, how do I fix this problem?
Thank in advance. I wish you success in your work.
(Sorry my bad English...)I used resources;
http://www.hypothetic.org/docs/msn/notification/example_session.phphttp://msnpiki.msnfanatic.com/index.php/MSN_Protocol_Version_8My error log;
### messenger.hotmail.com:1863 Connecting.
### Connected.
<<< VER 1 MSNP8 CVR 0
CVR 2 0x0409 win 4.10 i386 MSNMSGR 5.0.0544 MSMSGS myaddress@live.com
USR 3 TWN I myaddress@live.com
>>> VER 1 MSNP8
>>> CVR 2 1.0.0000 1.0.0000 1.0.0000 http://msgr.dlservice.microsoft.com http://download.live.com/?sku=messenger
>>> XFR 3 NS 64.4.34.129:1863 0 64.4.9.254:1863
### Disconnected.
### 64.4.34.129:1863 Connecting.
### Connected.
<<< VER 1 MSNP8 CVR 0
CVR 2 0x0409 win 4.10 i386 MSNMSGR 5.0.0544 MSMSGS myaddress@live.com
USR 3 TWN I myaddress@live.com
>>> VER 1 MSNP8
>>> CVR 2 1.0.0000 1.0.0000 1.0.0000 http://msgr.dlservice.microsoft.com http://download.live.com/?sku=messenger
>>> USR 3 TWN S ct=1265112178,rver=5.5.4182.0,wp=FS_40SEC_0_COMPACT,lc=1033,id=507,ru=http:%2F%2Fmessenger.msn.com,tw=0,kpp=1,kv=4,ver=2.1.6000.1,rn=1lgjBfIL,tpf=b0735e3a873dfb5e75054465196398e0
### nexus.passport.com:80 Connecting.
### Connected.
<<< GET /rdr/pprdr.asp HTTP/1.0
host: nexus.passport.com
>>> HTTP/1.1 200 OK
Connection: close
Date: Tue, 02 Feb 2010 12:03:45 GMT
Server: Microsoft-IIS/6.0
PPServer: PPV: 30 H: BAYIDSPRTS1A02 V: 0
PassportURLs: DARealm=Passport.Net,DALogin=login.live.com/login2.srf,DAReg=https://accountservices.passport.net/UIXPWiz.srf,Properties=https://accountservices.msn.com/editprof.srf,Privacy=https://accountservices.passport.net/PPPrivacyStatement.srf,GeneralRedir=http://nexusrdr.passport.com/redir.asp,Help=https://accountservices.passport.net,ConfigVersion=14
Content-Length: 0
Content-Type: text/html
Cache-control: private
### Disconnected.
### login.live.com:80 Connecting.
### Connected.
<<< GET /login2.srf HTTP/1.1
Authorization: Passport1.4 OrgVerb=GET,OrgURL=http%3A%2F%2Fmessenger%2Emsn%2Ecom,sign-in=myaddress%40live.com,pwd=mypasswordhere,ct=1265112178,rver=5.5.4182.0,wp=FS_40SEC_0_COMPACT,lc=1033,id=507,ru=http:%2F%2Fmessenger.msn.com,tw=0,kpp=1,kv=4,ver=2.1.6000.1,rn=1lgjBfIL,tpf=b0735e3a873dfb5e75054465196398e0
Host: login.live.com
>>> HTTP/1.1 401 Unauthorized
Connection: close
Date: Tue, 02 Feb 2010 12:04:02 GMT
Server: Microsoft-IIS/6.0
PPServer: PPV: 30 H: BAYIDSLGN1S14 V: 0
Content-Type: text/html; charset=iso-8859-1
Expires: Tue, 02 Feb 2010 12:03:02 GMT
Cache-Control: no-cache
Pragma: no-cache
P3P: CP="DSP CUR OTPi IND OTRi ONL FIN"
PassportConfig: ConfigVersion=14
WWW-Authenticate: Passport1.4 da-status=failed-noretry,srealm=Passport.NET,ts=-64,cburl=http://messenger.msn.com/images/logo102x88.gif,cbtxt=.NET%20Messenger%20Service
Content-Length: 362
>>> <html><head><meta http-equiv="REFRESH" content="0; URL=http://login.live.com/lockedout.srf?lc=1033&sf=1&id=507&ru=http%253A%252F%252Fmessenger%252Emsn%252Ecom&tw=20&fs=0&kv=4&ts=-64&sec=&mspp_shared=1&ec=e4tw&seclog=0&kpp=1&ver=2.1.6000.1&rn=EbUYVCyV&tpf=1fb0e4353ec5d91d867a7a5651abdcc5"><script type="text/javascript">function OnBack(){}</script></head></html>
### Disconnected.