• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 693
  • Last Modified:

Get php response in asp

Within an ASP page I'm trying to receive a response after "calling" a PHP page.

I've tried print("answer");  and echo "Answer"; within the PHP page without being able to retrieve "Answer" in ASP.

My ASP code is :

dim xml, strRetval
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.open "GET", "http://www.myDomainName.com/sendRequest.php", false
 
strRetval = xml.responseText
response.write strRetval
Set xml = nothing
0
davelt00
Asked:
davelt00
1 Solution
 
GaryCommented:
xml.open "GET", "http://www.myDomainName.com/sendRequest.php", false
xml.send
strRetval = xml.responseText
0
 
Ray PaseurCommented:
Here is a PHP script that will show you the GET request arguments.

<?php // RAY_bounce_get.php
error_reporting(E_ALL);
echo "<pre>" . PHP_EOL;
echo "HERE IS THE GET ARGUMENT FROM THE URL:" . PHP_EOL;
var_dump($_GET);

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now