aspose file tools
The moose likes Java in General and the fly likes Http Form Post Through Java Code Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Http Form Post Through Java Code" Watch "Http Form Post Through Java Code" New topic
Author

Http Form Post Through Java Code

Zubair Ashraf
Greenhorn

Joined: Jan 17, 2010
Posts: 1
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
Marshal

Joined: Mar 22, 2005
Posts: 35439
    
    9
Welcome to JavaRanch.

HTTP/HTML client libraries like HtmlUnit and jWebUnit support JavaScript in web pages, whereas HttpClient does not.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Http Form Post Through Java Code
 
Similar Threads
jQuery ajax on click of href
How do I retrieve Javascript values from a Java servlet?
call java code from javascript
How to capture enter key?
Struts 1.1 forward mapping problem