Reputation: 1
I was just curious as how to do this.
I want to open www.whatsmyip.com or something similar from my webpage.
Put an ip address in the textbox in that page.
Click the button
And read the value (suppose a textbox).
I want to achieve all this programatically without any human interaction.
How is that possible?
Upvotes: 0
Views: 87
Reputation: 630569
The example you posted is not possible.
You can't read the contents of a frame from another domain(though a subdomain or on the same domain is possible), this is a restriction known as the same-origin policy, put in place for security reasons.
What If I could launch gmail.com
and read your login name, what about your online banking site? :) You can see how this would be quickly abused if allowed.
Upvotes: 3