I'm working on a web app that talks to an API which authenticates requests by checking what IP they originated from. I've registered my test server with the API, but when I make a request, I get an XML response that says "Invalid IP."
To demonstrate the issue, I've made a bare-bones page which is just a button that when clicked makes a sample request and displays the response in the console: http://beta.pacificcoasttitle.com/test.html
I'm making the request using AJAX and a PHP proxy since its cross domain -- could this have something to do with the problem?
PHP proxy looks like this:
<?php
$file = file_get_contents($_GET['requrl']);
echo $file;
?>
I guess the access is not allowed for your server IP.
However it is very easy to test that and be sure, just do:
$url = 'http://rc.api.sitexdata.com/sitexapi/sitexapi.asmx/AddressSearch?Key=FFB6F23F-6FDA-4F16-A149-DB0834012C5F&Address=1432%20Dana%20Ave&LastLine=94301&ReportType=103&ClientReference=string&OwnerName=string';
$file = file_get_contents($url);
echo $file;
My advice is that once you made it to work with pure PHP, then move to the ajax implementation. This way it is easier to debug anyway.