Thanks to your suggestions I have made some steps ahead, even if not
reaching the full solution. I have discovered that I have to go thru 2
urls to get 2 different cookies (a JSESSIONID and another one) which
will then be sent with the authorization POST code.

Anyhow the last POST always brings me to an error page. I have studied
this page, and it has at the very top the following javascript:

**************************************************
<script>
if(top.location != self.location){
        var form = document.createElement("FORM");
        form.method = "POST";
        form.target = "_top";
        form.name="errorForm";
form.action="http://www.rossoalice.virgilio.it/alice/portal/error/entry.do";;
        var iHidden = document.createElement("INPUT");
        iHidden.type = "HIDDEN";
        iHidden.name = "errorMessage";
        iHidden.value = "La pagina richiesta non &egrave; al momento
disponibile.</p><p><a
href='http://hp.rossoalice.virgilio.it/hp/main_hp.html'>Torna alla
homepage di Rosso Alice</a>.";
        form.appendChild(iHidden);
        document.appendChild(form);
        form.submit();
}
</script>
*********************************************************

Of course this form will be automatically submitted and brings me to
the error page.
How can I get rid of that: if(top.location != self.location) ???

Reply via email to