• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 690
  • 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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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