Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to run java script function using HttpClient

 
Nimish Patel
Ranch Hand
Posts: 84
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the JavaScript possibly do something that's not supported by HttpUnit?
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not very sure but I think that Apaches HTTPClient is only to run methods/commands for HTTP protocol not for running javascript.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2308
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes..that is true ..httpunit can be useful in faking server client interaction.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic