aspose file tools*
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
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: 42951
    
  72
Does the JavaScript possibly do something that's not supported by HttpUnit?
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: 42951
    
  72
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