• Post Reply Bookmark Topic Watch Topic
  • New Topic

Http Form Post Through Java Code  RSS feed

 
Zubair Ashraf
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I want to submit a html Form through java code.


i use Apache HttpClient API Post method for this but when i send the request it return me same page with filled form instead of submitting it.

When i open that Html Form which i want to submit through java code i came to know that it has a ajax call to submit.

i want to know how can i send that ajax call also from java code .

i will really appreciate any help in this regard.


 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

HTTP/HTML client libraries like HtmlUnit and jWebUnit support JavaScript in web pages, whereas HttpClient does not.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!