Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 24th, 2007, 09:35 PM
Registered User
Join Date: Oct 2006
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 = "[email protected]"
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 ;)

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

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