Solved

Classic ASP WebResponse (or?)

Posted on 2008-10-22
2
562 Views
Last Modified: 2010-04-21
I have an application that was developed using Classic ASP - so I'd like to stick with that.  Unfortunately - there's a function that we need that is best done with a PHP application (we also have PHP installed on the server).  I think that would be a lot simpler than what's involved in writing the entire code via ASP or re-writing it in .NET.

So here's what I want to do.  I'd like to - from the ASP - make a call to the PHP code and obtain the value that is returned from it.

Would that be done via the webrequest/webresponse?  Can I see a quick sample of the syntax for that?

Thanks in advance!
0
Comment
Question by:miditainment
2 Comments
 
LVL 7

Accepted Solution

by:
bluV11t earned 500 total points
ID: 22781486
Hi! Try this:

strCheckPage= "URL_TO_PHP_PAGE"
 Set objHTTP = Server.CreateObject("MSXML2.XMLHTTP")
 objHTTP.open "GET", strRedirectPage, false
 objHTTP.send()
 
strReturnString = objHTTP.responseText
0
 

Author Closing Comment

by:miditainment
ID: 31508915
Gracias!  Worked like a charm!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now