input in search box programmatically
- by Sahil Manchanda
I'm making a Java program where I programmatically insert data into search field of a website and make submit event programmatically .
after submission a new website is opened..
i know i can read data using URLCONNECTION.
Eg if website name is www.pqr.net/index.php
after I make search submission I'm redirected to that page.
eg. www.pqr.net/ind2.php
how to get the url of page where I'm redirected because I want to read the contents of that page , unless I don't know the url of the page where I'm redirected , I can't read the contents