Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XML
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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
Reply
 
Thread Tools 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'

Hi!
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
Code:
xmlhttp.send HiddenString
in the following code
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=")
        FormStart=InStr(FormStart,PP_LoginForm,"action=")+8
        StringTemp = "onsubmit"
        FormEnding=InStr(FormStart-1,PP_LoginForm,StringTemp)-2
        FormTarget= Mid(PP_LoginForm,FormStart,FormEnding-FormStart)
        StringInvert = """"
        HiddenString=""
        HiddenStart=InStr(FormStart,PP_LoginForm,"<input type=""hidden"" ")
            do while(Not(HiddenStart=0))
            HidNameStart=InStr(HiddenStart,PP_LoginForm,"name=")+6
            HidNameEnding=InStr(HidNameStart,PP_LoginForm," ")-1
            TempName=Mid(PP_LoginForm,HidNameStart,HidNameEnding-HidNameStart)

            HidNameEnding=InStr(HidNameStart,PP_LoginForm,"value=")+7
            HidValueEnding=InStr(HidNameEnding,PP_LoginForm,"/>")-1

            TempValue=Server.URLEncode(Mid(PP_LoginForm,HidNameEnding,HidValueEnding-HidNameEnding))
                if TempName="PPSX" then
                TempValue = "Pass"
                end if
            HiddenString = HiddenString & TempName & "=" & TempValue & "&"
            HiddenStart=InStr(HidValueEnding,PP_LoginForm,"<input type=""hidden"" ")
            loop
        PP_LoginForm=""
            if len(HiddenString)>0 then
            HiddenString=Mid(HiddenString,1,Len(HiddenString)-1)
            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")
        Response.Flush
        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) & ""

        HiddenString=""
        HiddenStart=InStr(1,PP_LoginResult,"<input type=""hidden"" ")
            do while(Not(HiddenStart=0))
            HidNameStart=InStr(HiddenStart,PP_LoginResult,"name=")+6
            HidNameEnding=InStr(HidNameStart,PP_LoginResult," ")-1
            TempName=Mid(PP_LoginResult,HidNameStart,HidNameEnding-HidNameStart)

            HidNameEnding=InStr(HidNameStart,PP_LoginResult,"value=")+7
            HidValueEnding=InStr(HidNameEnding,PP_LoginResult,">")-1

            TempValue=Server.URLEncode(Mid(PP_LoginResult,HidNameEnding,HidValueEnding-HidNameEnding))
            HiddenString = HiddenString & TempName & "=" & TempValue & "&"
            HiddenStart=InStr(HidValueEnding,PP_LoginResult,"<input type=""hidden"" ")
            loop
        PP_LoginResult=""
            if len(HiddenString)>0 then
            HiddenString=Mid(HiddenString,1,Len(HiddenString)-1)
            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)
        cookieString=""
        Temp = Split(Header,vbCrlf)
            for i=0 to UBound(Temp)
            HeadTag=""
            On Error Resume Next
            HeadTag = Mid(Temp(i),1,11)
                if HeadTag="Set-Cookie:" then
                CookieContent=""
                HeadCookie = Mid(Temp(i),12,Len(Temp(i)))
                HeadCookieEnding=InStr(1,HeadCookie,";")
                    if HeadCookieEnding=0 then
                    CookieContent=HeadCookie
                    else
                    CookieContent=Mid(HeadCookie,1,HeadCookieEnding-1)
                    end if
                cookieString = cookieString & CookieContent & ";"
                end if
            next
    GetCookies=cookieString
    End Function
%>
Actually I'm trying to login into Microsoft's passport service! Please help me rectify this error ;)

Reply With Quote
Reply


Thread Tools
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 10:18 AM
xml DOM saving error (msxml3.dll) BrendonMelville XML 0 March 2nd, 2006 08: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 04:51 AM.


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