This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Unable to run java script function using HttpClient Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Unable to run java script function using HttpClient" Watch "Unable to run java script function using HttpClient" New topic
Author

Unable to run java script function using HttpClient

Nimish Patel
Ranch Hand

Joined: Jun 29, 2005
Posts: 84
Hi,

I am using HttpClient API for accesing web pages. I am able to access the content (html content)first page.Now I want to login from that page but problem is that there is java script function which is encrypting the password.so I am unable to go to next page and the programme is retriving the content of same page(html content of first page).

Please suggest me How to deal with this problem.

Thank you.

Nimish Patel
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
Does the JavaScript possibly do something that's not supported by HttpUnit?


Ping & DNS - my free Android networking tools app
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Not very sure but I think that Apaches HTTPClient is only to run methods/commands for HTTP protocol not for running javascript.


Rahul Bhattacharjee
LinkedIn - Blog
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
Oops ... I read the first post much too quickly, substituting HttpUnit for HttpClient. If you want to create an HTTP conversation back and forth, you're much off using HttpUnit, though. HttpClient -as suggested above- only retrieves the page - it has no facilities for dealing with page content. HttpUnit can do much more in this regard.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
yes..that is true ..httpunit can be useful in faking server client interaction.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to run java script function using HttpClient
 
Similar Threads
page refresh problem
how to load HTML in DIV
page refresh problem
requesting a web page through httpclient
Javascript issue when loading the JSP page content via an AJAX call