Parse ASP file from ASP Page

S

Sure

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.
 
C

clintonG

There are several methodologies to get that done all of which
require a skilled software developer who can ensure passing
user names and passwords across the Internet are done
securely.
 
K

Kevin Spencer

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
 
S

Sure

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.
 
K

Kevin Spencer

And your question is?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
 
S

Sure

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.
 
K

Kevin Spencer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top