Hi Atli,
Thanks for the reply :)
I am pointing to 'https' website. That's a typo in my post.
Regarding javascript redirect, I was referring to the action after CURL script execution. I'll put forward some more description about my script.
I am executing script on local server as,
http://localhost:8080/test_project/test_curl.php
I am pointing to 'https://web2.westlaw.com/signon/default.wl' through CURL. When I execute the script, browser address bar shows,
http://localhost:8080/signon/default.wl
As you can see, URL part next to domain name is appended over here (signon/default.wl) That's why, I was thinking that the page on Westlaw was submitting to itself. If you do view->source on 'https://web2.westlaw.com/signon/default.wl', you would see following code at top.
- <script type="text/javascript">
-
<!--
-
var getCorrectFN = null;
-
if (document.referrer != '') {
-
getCorrectFN = document.referrer;
-
getCorrectFN = getFrameName(getCorrectFN);
-
}
-
-
if (getCorrectFN == "_top" || getCorrectFN == "WestlawFrameWithChat" || getCorrectFN == "%5Ftop") {
-
if (top.location != location) {
-
top.location.href = location.href;
-
}
-
}
-
else if (getCorrectFN != null && getCorrectFN.length > 0) {
-
getWestlawFrameReference(getCorrectFN).location.href = location.href;
-
}
-
if (window.parent == window) {
-
if (top.name != "FromEW") {
-
top.name = '';
-
}
-
}
-
//-->
-
</script>
One more observation. When you open 'https://web2.westlaw.com/signon/default.wl', a small blank popup opens in right bottom corner which closes itself within 5-10 seconds. When I execute my script, a popup opens with same 'Page cannot be found' error as in the parent window.
I hope, I have explained the problem in a better way now.
Thanks,
Sandeep