Solved

Classic ASP WebResponse (or?)

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

Industry Leaders: 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

A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

735 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