tags:

views:

31

answers:

1

Even just a simple <?php readfile($_GET['url']) ?> results in a not acceptable error.

Any thoughts?

A: 

This just won't work because with AJAX you are restricted with the same origin policy. So unless your site is actually hosted in isbndb.com, this will never work.

From the W3C documentation 3.6.1.13

If the origin of url is not same origin with the XMLHttpRequest origin raise a SECURITY_ERR exception and terminate these steps.

You have to parse the data from isbndb.com on your server and then return it, you can't do cross-domain call with AJAX.

HoLyVieR
Ok, that makes sense...only now that I'm using a proxy.php script I am tripping 406 errors
urbanvintner
If your proxy return 406 error, it may be problem in php. Check `LiveHTTPHeader` extension for valid headers in `isbndb.com` and set it with `curl` in php.
jcubic
thanks. I've given up on that idea for now though. If you would like to take a look at what I am trying to do go here http://www.urbanvintner.co.nz/book/
urbanvintner