Solved

Classic ASP WebResponse (or?)

Posted on 2008-10-22
2
561 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
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…

707 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

14 Experts available now in Live!

Get 1:1 Help Now