Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Classic ASP WebResponse (or?)

Posted on 2008-10-22
2
Medium Priority
?
570 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 2000 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

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…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
Suggested Courses

772 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