biraj joshi wrote:exec() only opens webpage in browser but i want to post data into that opened page from getRuntime.exec() function
biraj joshi wrote:i m stuck into a situation. The problem is that i want to write a java program/function which opens a web page in a default browser and post some data into that same opened web page.
biraj joshi wrote:the problem is with getRuntime.exec(url) as it only opens the webpage in browser but doesnot allows to post the data(not a query string attach with url) in the same webpage..I also tried httpclient post method which allow me to post the data into another page but it doesnot opens the same page in browser.
I just want to open a webpage in browser.In that webpage i have some form hidden text fields and i want to post the data into that hidden fields through post method.In other words whenever the webpage is opened i want those hidden fields to be filled with post data.
biraj joshi wrote:Thanks..the firefoxdriver opens the browser..it needs the jar selenium 2.39.0
Clare McLennan wrote:That all sounds very complicated for something that is quite straightforward. Are you really saying there is no way within a java client to open a URL in Internet Explorer and pass it some HTTP POST parameters?
Clare McLennan wrote:If anyone has any better ideas, do let me know!
the front page was requiring an HTTP POST to stop the parameters being shown in the address bar.
Clare McLennan wrote:Some of the POST parameters are user ids and passwords :-)
BUT there IS concern about users seeing user ids and passwords in the address bar of the website.
Clare McLennan wrote:OK I'll take a look but I will have to persuade client that something should be in address bar.
Ulf Dittmer wrote: you should also use an encrypted connection (i.e., HTTPS). Credentials should not be sent through an unencrypted connection.