I have a fairly simple cURL call that should display a frameset on a remote server. It's returning the frameset but trying to serve it as if it was local. As the frame source is relative and not absolute, I get 'Page cannot be displayed' errors. I have no access to the remote server (it's an API).
I just want the remote server to display the frameset.
I've tried
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
and
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0);
and
//curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
What are you doing with the content you fetch?
Are you serving the whole page from your site? => incorporate a <base href="remoteurl"> at the top of the page
as a whole or are you intergrating within some page on your site?=>search and replace href="" so that it starts with the url of the remote site
nbcit
ASKER
With all other calls to the API, XML is returned and parsed but in this case the remote site is trying to display a frameset with local paths.
nbcit
ASKER
I'd be happy to serve their page in a new window and be done.
Are you serving the whole page from your site? => incorporate a <base href="remoteurl"> at the top of the page
as a whole or are you intergrating within some page on your site?=>search and replace href="" so that it starts with the url of the remote site