Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XML
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 24th, 2007, 09:35 PM
Registered User
Join Date: Oct 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to prakharbirla Send a message via MSN to prakharbirla Send a message via Yahoo to prakharbirla
Default msxml3.dll error '800c0014'

Does anyone know about this error in MSXML2.ServerXMLHTTP? It says:
msxml3.dll error '800c0014'

A redirection problem occured.
I tired it the browser, and I think this pare redirects and lot but I dont understand why should there be any problems!

The error particularly occurs on this line
xmlhttp.send HiddenString
in the following code
Username = "USERNAME@hotmail.com"
Password = "PASSWORD"
Response.Write PassportLogin(Username, Password)
    Function PassportLogin(User, Pass)
        set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
        xmlhttp.open "GET", "http://login.live.com/login.srf?lc=1033&id=10", false
        xmlhttp.send ""
        PP_LoginForm = xmlhttp.responseText
        FormStart=InStr(1,PP_LoginForm,"<form name=")
        StringTemp = "onsubmit"
        FormTarget= Mid(PP_LoginForm,FormStart,FormEnding-FormStart)
        StringInvert = """"
        HiddenStart=InStr(FormStart,PP_LoginForm,"<input type=""hidden"" ")
            do while(Not(HiddenStart=0))
            HidNameEnding=InStr(HidNameStart,PP_LoginForm," ")-1


                if TempName="PPSX" then
                TempValue = "Pass"
                end if
            HiddenString = HiddenString & TempName & "=" & TempValue & "&"
            HiddenStart=InStr(HidValueEnding,PP_LoginForm,"<input type=""hidden"" ")
            if len(HiddenString)>0 then
            end if
        xmlhttp.open "POST", FormTarget, false
        xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
        Response.Write Server.HTMLEncode(HiddenString & "&login=" & Server.URLEncode(User) & "&passwd=" & Server.URLEncode(Pass) & "&LoginOptions=3&SI=Sign+in")
        xmlhttp.send HiddenString & "&login=" & Server.URLEncode(User) & "&passwd=" & Server.URLEncode(Pass) & "&LoginOptions=3&SI=Sign+in"
        PP_LoginResult = xmlhttp.responseText
        SavedCookies = GetCookies(xmlhttp.getAllResponseHeaders())
        Response.Write SavedCookies & ""
        Response.Write Server.HTMLEncode(PP_LoginResult) & ""

        HiddenStart=InStr(1,PP_LoginResult,"<input type=""hidden"" ")
            do while(Not(HiddenStart=0))
            HidNameEnding=InStr(HidNameStart,PP_LoginResult," ")-1


            HiddenString = HiddenString & TempName & "=" & TempValue & "&"
            HiddenStart=InStr(HidValueEnding,PP_LoginResult,"<input type=""hidden"" ")
            if len(HiddenString)>0 then
            end if

        xmlhttp.open "POST", "https://account.live.com/SummaryPage.aspx?mkt=en-us&id=10&vv=450&lc=1033&wa=wsignin1.0", false
        xmlhttp.setRequestHeader "Cookie", "Passport=Microsoft"
        xmlhttp.setRequestHeader "Cookie", SavedCookies
        xmlhttp.send HiddenString
        Response.Write Server.HTMLEncode(PP_LoginResult) & ""
    End Function

    Function GetCookies(Header)
        Temp = Split(Header,vbCrlf)
            for i=0 to UBound(Temp)
            On Error Resume Next
            HeadTag = Mid(Temp(i),1,11)
                if HeadTag="Set-Cookie:" then
                HeadCookie = Mid(Temp(i),12,Len(Temp(i)))
                    if HeadCookieEnding=0 then
                    end if
                cookieString = cookieString & CookieContent & ";"
                end if
    End Function
Actually I'm trying to login into Microsoft's passport service! Please help me rectify this error ;)

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"msxml3.dll error '80072ee7' kamn98 XML 5 June 21st, 2013 08:13 PM
msxml3.dll error '800c0008' a.verta Classic ASP XML 3 June 5th, 2008 10:27 AM
msxml3.dll error '800c0014' Harry P XML 1 January 31st, 2007 11:18 AM
xml DOM saving error (msxml3.dll) BrendonMelville XML 0 March 2nd, 2006 09:33 AM
msxml3.dll error '80072f78' looc Classic ASP XML 3 September 24th, 2004 02:46 PM

All times are GMT -4. The time now is 06:07 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.