Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Importing contacts from hotmail and aol

Importing contacts from hotmail and aol

Scheduled Pinned Locked Moved ASP.NET
help
12 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Prashant B Lavate
    wrote on last edited by
    #1

    Hi i am trying to import contacts from AOL and hotmail i have done it in Gmail and yahoo but not able to do for Hotmail and AOL will anybody send me some help.

    Thanks & Regards, Prashant B. Lavate Software Engineer Mobile : +919423872257 Pune(India)

    S 1 Reply Last reply
    0
    • P Prashant B Lavate

      Hi i am trying to import contacts from AOL and hotmail i have done it in Gmail and yahoo but not able to do for Hotmail and AOL will anybody send me some help.

      Thanks & Regards, Prashant B. Lavate Software Engineer Mobile : +919423872257 Pune(India)

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      What kind of problem are you facing when you try it for hotmail or AOL? Do you get some kind of error?

      It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

      P 1 Reply Last reply
      0
      • S SeMartens

        What kind of problem are you facing when you try it for hotmail or AOL? Do you get some kind of error?

        It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

        P Offline
        P Offline
        Prashant B Lavate
        wrote on last edited by
        #3

        in hotmil it is not giving location so null is coming

        Thanks & Regards, Prashant B. Lavate Software Engineer Mobile : +919423872257 Pune(India)

        S 1 Reply Last reply
        0
        • P Prashant B Lavate

          in hotmil it is not giving location so null is coming

          Thanks & Regards, Prashant B. Lavate Software Engineer Mobile : +919423872257 Pune(India)

          S Offline
          S Offline
          SeMartens
          wrote on last edited by
          #4

          Okay??? so could you post a bit of the code and point to the line where the error occurs?

          It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

          P 1 Reply Last reply
          0
          • S SeMartens

            Okay??? so could you post a bit of the code and point to the line where the error occurs?

            It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

            P Offline
            P Offline
            Prashant B Lavate
            wrote on last edited by
            #5

            public void GetContacts(string strUserName, string strPassword, out bool boolIsOK, out DataTable dtContatct, out string strError) { //default values dtContatct = new DataTable(); boolIsOK = true; strError = string.Empty; // ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(MyCertValidation); //1================================================================================================================= //http://mail.live.com the AllowAutoRedirect will call the next url subsequently //http://login.live.com/login.srf?wa=wsignin1.0&rpsnv=10&ct=1193552878&rver=4.5.2130.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx&id=64855 String strRequestUrl = "http://mail.live.com"; HttpWebRequest webReqFirstPage = (HttpWebRequest)WebRequest.Create(strRequestUrl); webReqFirstPage.Method = Utility.Get; webReqFirstPage.KeepAlive = true; webReqFirstPage.AllowAutoRedirect = true; webReqFirstPage.CookieContainer = new CookieContainer(); webReqFirstPage.UseDefaultCredentials = true; webReqFirstPage.UserAgent = Utility.UserAgent; HttpWebResponse webResFirstPage = (HttpWebResponse)webReqFirstPage.GetResponse(); CookieCollection ccWebReqFirstPage = new CookieCollection(); if (webResFirstPage.Headers[Utility.SetCookie] != null) { ccWebReqFirstPage = Utility.GetAllCookiesFromHeader(webResFirstPage.Headers[Utility.SetCookie], webResFirstPage.ResponseUri.Host); } StreamReader sr1 = new StreamReader(webResFirstPage.GetResponseStream()); String strFirstPage = sr1.ReadToEnd(); sr1.Close(); webResFirstPage.Close(); webReqFirstPage.Abort(); //this is the url for 3rd request string strLoginUrlTemp = Utility.GetRegExParsedValue("srf_uPost='(?.*?)'", strFirstPage); //For 3rd Request //keeping values from the FORM for 3rd request string strPPSXValue = Utility.GetRegExParsedValue("srf_sRBlob='(?.*?)'", strFirstPage); string strPPFTValue = Utility.GetRegExParsedValue("<input.*?name>.*?)\"/>", strFirstPage); //this page call the 2nd request through javascrpt..for this collecting the url string strBaseUrl =

            S 1 Reply Last reply
            0
            • P Prashant B Lavate

              public void GetContacts(string strUserName, string strPassword, out bool boolIsOK, out DataTable dtContatct, out string strError) { //default values dtContatct = new DataTable(); boolIsOK = true; strError = string.Empty; // ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(MyCertValidation); //1================================================================================================================= //http://mail.live.com the AllowAutoRedirect will call the next url subsequently //http://login.live.com/login.srf?wa=wsignin1.0&rpsnv=10&ct=1193552878&rver=4.5.2130.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx&id=64855 String strRequestUrl = "http://mail.live.com"; HttpWebRequest webReqFirstPage = (HttpWebRequest)WebRequest.Create(strRequestUrl); webReqFirstPage.Method = Utility.Get; webReqFirstPage.KeepAlive = true; webReqFirstPage.AllowAutoRedirect = true; webReqFirstPage.CookieContainer = new CookieContainer(); webReqFirstPage.UseDefaultCredentials = true; webReqFirstPage.UserAgent = Utility.UserAgent; HttpWebResponse webResFirstPage = (HttpWebResponse)webReqFirstPage.GetResponse(); CookieCollection ccWebReqFirstPage = new CookieCollection(); if (webResFirstPage.Headers[Utility.SetCookie] != null) { ccWebReqFirstPage = Utility.GetAllCookiesFromHeader(webResFirstPage.Headers[Utility.SetCookie], webResFirstPage.ResponseUri.Host); } StreamReader sr1 = new StreamReader(webResFirstPage.GetResponseStream()); String strFirstPage = sr1.ReadToEnd(); sr1.Close(); webResFirstPage.Close(); webReqFirstPage.Abort(); //this is the url for 3rd request string strLoginUrlTemp = Utility.GetRegExParsedValue("srf_uPost='(?.*?)'", strFirstPage); //For 3rd Request //keeping values from the FORM for 3rd request string strPPSXValue = Utility.GetRegExParsedValue("srf_sRBlob='(?.*?)'", strFirstPage); string strPPFTValue = Utility.GetRegExParsedValue("<input.*?name>.*?)\"/>", strFirstPage); //this page call the 2nd request through javascrpt..for this collecting the url string strBaseUrl =

              S Offline
              S Offline
              SeMartens
              wrote on last edited by
              #6

              And the line where the error occurs?

              It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

              P 1 Reply Last reply
              0
              • S SeMartens

                And the line where the error occurs?

                It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

                P Offline
                P Offline
                Prashant B Lavate
                wrote on last edited by
                #7

                string strNextUrlTemp = webResMailLiveComASPX.Headers[Utility.Location].ToString(); it is giving null

                Thanks & Regards, Prashant B. Lavate Software Engineer Mobile : +919423872257 Pune(India)

                S 1 Reply Last reply
                0
                • P Prashant B Lavate

                  string strNextUrlTemp = webResMailLiveComASPX.Headers[Utility.Location].ToString(); it is giving null

                  Thanks & Regards, Prashant B. Lavate Software Engineer Mobile : +919423872257 Pune(India)

                  S Offline
                  S Offline
                  SeMartens
                  wrote on last edited by
                  #8

                  Okay, and what is Utility.Location (the string)? Is it important, or can you just ignore it for AOL and Hotmail? Maybe these both don't provide the value?

                  It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

                  P M 2 Replies Last reply
                  0
                  • S SeMartens

                    Okay, and what is Utility.Location (the string)? Is it important, or can you just ignore it for AOL and Hotmail? Maybe these both don't provide the value?

                    It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

                    P Offline
                    P Offline
                    Prashant B Lavate
                    wrote on last edited by
                    #9

                    yes this is imp coz it g takes url after login to hotmail

                    Thanks & Regards, Prashant B. Lavate Software Engineer Mobile : +919423872257 Pune(India)

                    S 1 Reply Last reply
                    0
                    • P Prashant B Lavate

                      yes this is imp coz it g takes url after login to hotmail

                      Thanks & Regards, Prashant B. Lavate Software Engineer Mobile : +919423872257 Pune(India)

                      S Offline
                      S Offline
                      SeMartens
                      wrote on last edited by
                      #10

                      So I would check what you are getting back after login. I suggest using a tcpmonitor to capture everything that will run through the wire while you login at AOL or Hotmail. Maybe it is another property you have to look for. You can find a good tcp monitor here: https://tcpmon.dev.java.net/[^]

                      It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

                      modified on Thursday, April 23, 2009 6:15 AM

                      1 Reply Last reply
                      0
                      • S SeMartens

                        Okay, and what is Utility.Location (the string)? Is it important, or can you just ignore it for AOL and Hotmail? Maybe these both don't provide the value?

                        It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

                        M Offline
                        M Offline
                        mariahayek
                        wrote on last edited by
                        #11

                        yes it's a feature and thanks for your article.........

                        S 1 Reply Last reply
                        0
                        • M mariahayek

                          yes it's a feature and thanks for your article.........

                          S Offline
                          S Offline
                          SeMartens
                          wrote on last edited by
                          #12

                          :confused: The location is a feature? :confused: Which article? :confused:

                          It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups