Consuming cross-domain HTML output

Hi,

we are trying to consume the HTML output generated by a server-side script that runs on a different host of the one hosting our webapp. We are making use of RPCManager using scriptInclude transport.
The request reaches the server (I see it from the log), but never completes on client side (smartclient continues to show the “contacting server” modal dialog).
Here the code

var urlSE="https://infn-se-01.ct.pi2s2.it/dpm/ct.pi2s2.it/home/cometa/prova/test.jpg?metacmd=post&metaopt=755";

function getUrlPhisic(){

RPCManager.send(null,"myCallBack(data)",{actionURL: urlSE,httpMethod:"GET",showPrompt:true,transport:"scriptInclude",useSimpleHttp:true,containsCredentials: true});
}
function myCallBack(){
isc.say("ok???"+data);

}

Looking at the developer console, I see the the RPC request doesn’t reach the SUCCESS status.
What am I doing wrong?

I cannot change even the approach, asking the webapp server to do the request on behalf of the user, because the request to the above HTTPS server needs to be authenticated with the X.509 Certificate loaded into the browser.

If we try to use a HTMLFlow to save the output, I can’t find a way to get the pane content.

Any suggestions are greatly appreciated.
Best

scriptInclude transport requires the response to be executable JavaScript. It won’t work for this.

There’s not really a good solution for this other than rearranging the sites so that they can share a common document.domain, or introducing an intermediary web server that can be trusted despite the lack of certificate-based authentication.

uhmm…but how HTMLFlow.setContentURL is implemented?
I guess it uses behind the scene a XMLHttpRequest.

I am able to retrieve the html output of the service from the remote https url (authenticating with the certificate), but I am not able to read the HTMLFlow.contents with Canvas.getContents() call.
why this is not working? if this should work I have found a workaround, no?

or, because in a HTML form, the action can be set to any domain, is there a way to save the output coming after the form submit??

thank you in advance

setContentsURL uses an XMLHttpRequest for contentTypes:“fragment” mode (won’t work cross-domain) and an IFrame for contentsType:“page” mode (will work cross-domain, but no way to access content from the hosting page.