Re: Parse ASP file from ASP Page

From: Kevin Spencer (kspencer_at_takempis.com)
Date: 09/17/04


Date: Fri, 17 Sep 2004 08:16:35 -0400

Is your question "How do I parse the returned HTML to find out whether or
not the login was accepeted?"

If so, you would use Regular Expressions.

-- 
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"Sure" <csuresh01@yahoo.com> wrote in message
news:abb15b21.0409162200.22e66a5c@posting.google.com...
> Hi Have I an asp page with UserName and password in my local
> web server When I post a data from this server
> it requires ot HTTP post to LDAP Server
>
> For accesing the LDAP server requires a permission from
> the server.But my local webserver doesn't have that.
>
> So I am trying to update thrg HTTP.
>
> <%
> myUrl="http://xxx/PTS_FSD/connection.asp"
> myRequest ="cil=Suresh" & "&cip=XX$"
> myResponse = SendPost(myUrl,myRequest)
>
> Response.write(myResponse)
> %>
>
> <%
> Function SendPost(sUrl,sRequest)
> Set oHTTP = CreateObject("Msxml2.XMLHTTP")
> oHTTP.open  "POST", myUrl,False
> oHTTP.setRequestHeader "lastCached", now()
> oHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
> oHTTP.send sRequest
> SendPost = oHttp.responseText
> %>
>
>
> This Response.write(myresponse) is showing the ASP page of the server.
> It has the submit the submit button in that page and that page will
> verify the user name and password is valid or not.
> "Kevin Spencer" <kspencer@takempis.com> wrote in message
news:<uiWdh1omEHA.3428@TK2MSFTNGP09.phx.gbl>...
> > Is there a question here? If so, can you elaborate on what you're trying
to
> > do, without the "parse" stuff - just business requirements.
> >
> > -- 
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > I get paid good money to
> > solve puzzles for a living
> >
> > "Sure" <csuresh01@yahoo.com> wrote in message
> > news:abb15b21.0409140604.7bde7944@posting.google.com...
> > > Hi,
> > > I have one ASP file in one WebServer which has to
> > > parse the another ASP file in another webserver
> > > which will check the username and password sent by
> > > first is valid.
> > >
> > > Eg .  139.54.132.12/TESTING/login.asp with UserName & Password
> > >
> > >       139.54.132.10/XXX/login.asp with Username & password from the
> > > above loc it has to submit this page and get back the results.
> > >
> > > If username and password is valid allow to login.