aMSN Forums
February 12, 2012, 12:57:47 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to make own msn client  (Read 3330 times)
musa
Newbie

Offline Offline

Posts: 4


View Profile
« on: February 02, 2010, 02:20:27 pm »

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.php
http://msnpiki.msnfanatic.com/index.php/MSN_Protocol_Version_8

My error log;
Code:
### 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.
Logged
alexandernst
Developers
Super Power User
*
Offline Offline

Posts: 748



View Profile
« Reply #1 on: February 02, 2010, 02:48:21 pm »

You should use HTTPS when loging in with passport 1.4
If you're not sure how to do that look at amsn code Smiley
If you're more .net coder, have a look at msnpsharp (google for it, its the first page from google results)
Logged
musa
Newbie

Offline Offline

Posts: 4


View Profile
« Reply #2 on: February 02, 2010, 03:53:05 pm »

thanks for reply.

well. How can I make https connection with winsock. and how I will look at amsn code
Logged
alexandernst
Developers
Super Power User
*
Offline Offline

Posts: 748



View Profile
« Reply #3 on: February 02, 2010, 04:23:06 pm »

You can make https connections reading some docs Smiley

And about how to look amsn code, you can try opening amsn's .tcl files with your favourite text editor.
Logged
musa
Newbie

Offline Offline

Posts: 4


View Profile
« Reply #4 on: February 02, 2010, 04:48:28 pm »

thank you for support and all reply Smiley i'm try all and come back again.
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9424


View Profile WWW
« Reply #5 on: February 02, 2010, 06:41:38 pm »

ok, musa, you go and try all that, but don't come back... This isn't a "visual basic support group for newbies who don't know how to read docs", this is an aMSN support forum, if it's not for asking for help for aMSN, then I suggest you don't come back.
By the very nature of your questions, it is quite clear to me that you are a complete newbie and completely clueless at what you are trying to do.. you have no idea what the protocol needs, you have no idea how to look at source code, you have no idea how to use even the programming language you chose to use.. and the worst think, you don't even know how to choose a real/proper programming language!
My personal advice: forget about all this, and go do something actually productive in your life.

Sorry for being rude, but I just felt someone had to tell you that!
Good luck!
« Last Edit: February 02, 2010, 07:27:02 pm by kakaroto » Logged

KaKaRoTo
musa
Newbie

Offline Offline

Posts: 4


View Profile
« Reply #6 on: February 02, 2010, 10:10:51 pm »

Sorry to ask for help. I never come again, be sure
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!