input in search box programmatically

Posted by Sahil Manchanda on Stack Overflow See other posts from Stack Overflow or by Sahil Manchanda
Published on 2012-06-18T15:10:27Z Indexed on 2012/06/18 15:16 UTC
Read the original article Hit count: 182

Filed under:

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

© Stack Overflow or respective owner

Related posts about java