override window.name with php
Posted: Thu Dec 18, 2008 8:27 pm
Hi everyone, I have a problem with a project.
I want to read a webpage from an external website (eg. http://somesite.com/targetpage.php)
That was easy using fsockopen() routines
But I run into difficulty reading another page which is being opened in another window by click a "More Info" link.
I looked into it's javascript coding and it's just a simple window.open() call with window name on it.
I tried to copy the url of that page and run it directly on the address bar but it seems like there is some sort of security check that redirects me back to the first page. fsockopen() routine was giving me a "Object Moved" result.
I also tried to disable javascript in my browser but didnt work as well. It's just giving me a "Please enable javascript" result
My first bet is that it checks for cookies written when the first page is loaded.
Secondly, I think it is checking to make sure that second page is being loaded on a popup window. Probably, looking for window.name
My question is
1. Is it possible to specify the window.name using fsockopen() routine or by setting http headers
2. Is there other work arround for this situation. I just need the HTML result of that second page.
Thanks in advance.
I want to read a webpage from an external website (eg. http://somesite.com/targetpage.php)
That was easy using fsockopen() routines
But I run into difficulty reading another page which is being opened in another window by click a "More Info" link.
I looked into it's javascript coding and it's just a simple window.open() call with window name on it.
I tried to copy the url of that page and run it directly on the address bar but it seems like there is some sort of security check that redirects me back to the first page. fsockopen() routine was giving me a "Object Moved" result.
I also tried to disable javascript in my browser but didnt work as well. It's just giving me a "Please enable javascript" result
My first bet is that it checks for cookies written when the first page is loaded.
Secondly, I think it is checking to make sure that second page is being loaded on a popup window. Probably, looking for window.name
My question is
1. Is it possible to specify the window.name using fsockopen() routine or by setting http headers
2. Is there other work arround for this situation. I just need the HTML result of that second page.
Thanks in advance.