1. HTTP/1.1 200 OK
  2. Cache-Control: no-cache
  3. Pragma: no-cache
  4. Content-Length: 571
  5. Content-Type: text/html; charset=utf-8
  6. Expires: Fri, 08 Jul 2011 09:52:05 GMT
  7. Server: Microsoft-IIS/7.5
  8. P3P: CP="DSP CUR OTPi IND OTRi ONL FIN"
  9. X-XSS-Protection: 0
  10. Set-Cookie: MSPOK= ; expires=Thu, 30-Oct-1980 16:00:00 GMT;domain=login.live.com;path=/;HTTPOnly= ;version=1
  11. Set-Cookie: PPAuth=...cookie goes here...; domain=login.live.com;secure= ;path=/;HTTPOnly= ;version=1
  12. Set-Cookie: PPLState=1; domain=.live.com;path=/;version=1
  13. Set-Cookie: MSPShared=1; expires=Wed, 30-Dec-2037 16:00:00 GMT;domain=login.live.com;path=/;HTTPOnly= ;version=1
  14. Set-Cookie: MSPPre= ;domain=login.live.com;path=/;Expires=Thu, 30-Oct-1980 16:00:00 GMT
  15. Set-Cookie: MSPCID= ; HTTPOnly= ; domain=login.live.com;path=/;Expires=Thu, 30-Oct-1980 16:00:00 GMT
  16. Set-Cookie: RPSTAuth=...cookie goes here...; domain=.live.com;path=/;HTTPOnly= ;version=1
  17. Set-Cookie: RPSTAuthTime=1310118785; domain=login.live.com;path=/;HTTPOnly= ;version=1
  18. Set-Cookie: MSPAuth=...cookie goes here...; domain=.live.com;path=/;HTTPOnly= ;version=1
  19. Set-Cookie: MSPProf=...cookie goes here...; domain=.live.com;path=/;HTTPOnly= ;version=1
  20. Set-Cookie: MSNPPAuth=...cookie goes here...; domain=.live.com;path=/;HTTPOnly= ;version=1
  21. Set-Cookie: MH=MSFT; domain=.live.com;path=/;version=1
  22. Set-Cookie: MHW=; expires=Thu, 30-Oct-1980 16:00:00 GMT;domain=.live.com;path=/;version=1
  23. Set-Cookie: MHList=; expires=Thu, 30-Oct-1980 16:00:00 GMT;domain=.live.com;path=/;version=1
  24. Set-Cookie: NAP=V=1.9&E=b13&C=0G_duhr_tQKqjDgf383QrDgK2gMYHsFPE_oAbIgZoDUzSr3M7_FXfw&W=1;domain=.live.com;path=/
  25. Set-Cookie: ANON=A=A84CB86...FFFFFFF&E=b6d&W=1;domain=.live.com;path=/
  26. Set-Cookie: MSPVis=$2$9;domain=login.live.com;path=/
  27. Set-Cookie: pres=; expires=Thu, 30-Oct-1980 16:00:00 GMT;domain=.live.com;path=/;version=1
  28. Set-Cookie: LOpt=0; domain=login.live.com;path=/;version=1
  29. Set-Cookie: WLSSC=...cookie goes here...; domain=.live.com;secure= ;path=/;HTTPOnly= ;version=1
  30. Set-Cookie: MSPSoftVis=@72...20@:@; domain=login.live.com;path=/;version=1
  31. PPServer: PPV: 30 H: BAYIDSLGN1M36 V: 0
  32. Date: Fri, 08 Jul 2011 09:53:04 GMT
  33. Connection: close
  34.  
  35. <html><head><script type="text/javascript">function rd(){window.location.replace("http://www.hotmail.msn.com/cgi-bin/sbox?t=...&p=...&mkt=EN-US&lc=1033&id=2");}function OnBack(){}</script></head><body onload="javascript:rd();"></body></html></textarea>!!!<textarea>HTTP/1.1 301 Moved Permanently
  36. Content-Length: 546
  37. Content-Type: text/html
  38. Location: http://www.hotmail.msn.com/cgi%2Dbin/sbox/?t=...&p=...&mkt=EN-US&lc=1033&id=2
  39. Server: Microsoft-IIS/6.0
  40. P3P: CP="BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo"
  41. xxn: 49
  42. Date: Fri, 08 Jul 2011 09:53:04 GMT
  43.  
  44. HTTP/1.1 301 Moved Permanently
  45. Date: Fri, 08 Jul 2011 09:53:05 GMT
  46. Server: Microsoft-IIS/6.0
  47. P3P: CP="BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo"
  48. xxn: 16
  49. MSNSERVER: H: DUB102-w16 V: 16.0.1677.630 D: 2011-06-30T23:31:34
  50. Location: http://mail.live.com/default.aspx
  51. Set-Cookie: KVC=...cookie goes here...; domain=.mail.live.com; path=/
  52. Set-Cookie: xid=...cookie goes here...; domain=.msn.com; path=/
  53. Set-Cookie: xidseq=1; domain=.msn.com; path=/
  54. Set-Cookie: LD=; domain=.msn.com; expires=Fri, 08-Jul-2011 08:13:05 GMT; path=/
  55. Cache-Control: no-cache, no-store
  56. Pragma: no-cache
  57. Expires: -1
  58. Content-Type: text/html; charset=utf-8
  59. Content-Length: 150
  60.  
  61. ***[according to the normal browser flow, here I should be redirected to the normal hotmail homepage]***
  62.  
  63. HTTP/1.1 302 Found
  64. Date: Fri, 08 Jul 2011 09:53:05 GMT
  65. Server: Microsoft-IIS/6.0
  66. P3P: CP="BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo"
  67. xxn: 34
  68. MSNSERVER: H: DUB103-w34 V: 16.0.1677.630 D: 2011-06-30T23:31:34
  69. Location: https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=11&ct=1310118785&rver=6.1.6206.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx%3Frru%3Dinbox&lc=1033&id=...&mkt=en-US&cbcxt=mai&snsc=1
  70. Set-Cookie: KSC=; domain=.mail.live.com; expires=Thu, 01-Jan-1970 12:00:01 GMT; path=/
  71. Set-Cookie: kr=; domain=.mail.live.com; expires=Thu, 01-Jan-1970 12:00:01 GMT; path=/
  72. Set-Cookie: bsc=; domain=.mail.live.com; expires=Thu, 01-Jan-1970 12:00:01 GMT; path=/
  73. Set-Cookie: rru=; domain=.mail.live.com; expires=Thu, 01-Jan-1970 12:00:01 GMT; path=/
  74. Set-Cookie: prc=; domain=.mail.live.com; expires=Thu, 01-Jan-1970 12:00:01 GMT; path=/
  75. Set-Cookie: mt=; domain=.mail.live.com; expires=Thu, 01-Jan-1970 12:00:01 GMT; path=/
  76. Set-Cookie: KVC=; domain=.mail.live.com; expires=Thu, 01-Jan-1970 12:00:01 GMT; path=/
  77. Set-Cookie: DWN=; domain=.mail.live.com; expires=Thu, 01-Jan-1970 12:00:01 GMT; path=/
  78. Cache-Control: no-cache, no-store
  79. Pragma: no-cache
  80. Expires: -1
  81. Content-Type: text/html; charset=utf-8
  82. Content-Length: 354
  83.  
  84. HTTP/1.1 200 OK
  85. Cache-Control: no-cache
  86. Pragma: no-cache
  87. Content-Length: 210
  88. Content-Type: text/html; charset=utf-8
  89. Expires: Fri, 08 Jul 2011 09:52:06 GMT
  90. Server: Microsoft-IIS/7.5
  91. P3P: CP="DSP CUR OTPi IND OTRi ONL FIN"
  92. X-XSS-Protection: 0
  93. Set-Cookie: MSPRequ=lt=...&id=...&co=1; path=/;version=1
  94. Set-Cookie: MSPSoftVis=@721...620@:@; domain=login.live.com;path=/;version=1
  95. PPServer: PPV: 30 H: BAYIDSLGN1M44 V: 0
  96. Date: Fri, 08 Jul 2011 09:53:06 GMT
  97. Connection: close
  98.  
  99. <html><head><script type="text/javascript">function rd(){window.location.replace("http://mail.live.com/default.aspx?rru=inbox");}function OnBack(){}</script></head><body onload="javascript:rd();"></body></html>
  100.  
  101.  
  102. ***[from now on if I go to default.aspx?rru=inbox, it will redirect me to the previous login.live.com which will again redirect me to this default.aspx and so on in an endless loop]***
  103.  
  104. https://apis.live.net/v5.0/me/contacts?access_token=yourApiKey
  105.  
  106. $contacts = json_decode(
  107. file_get_contents(
  108. 'https://apis.live.net/v5.0/me/contacts?access_token=yourApiKey'
  109. )
  110. );