Solved

Classic ASP WebResponse (or?)

Posted on 2008-10-22
2
566 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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.
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.

752 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