Get XMLHttpRequest response's data with java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Get XMLHttpRequest response's data with java

There is an interactive website, containing list of options, by clicking one of them, it send xmlhttp request, and the displaying the data on website, I would ask, how to get these data with java in order to save it, etc..., if I know the referer complete url? My goal is to save these data automatically, still clicking and clicking on the button :) The website has this pattern http://www.yyyyuu.edu.sd/book/index.php?embid=&todo=&ekey=&mkey=3&rnb1= but the part after "index.php" doesnt be displayed in url toolbar, but I got it from other place, so changing "mkey" parameter, should sends other request. thx for any help,

9th Feb 2019, 10:11 AM
Khaled
Khaled - avatar
1 Answer
+ 5
Basically you need a controller on the backend listening to the HttpRequest. I'd recommend to look into the Spring framework which provides out-of-the-box solutions for REST services and data persistence (for many databases, using JPA, Hibernate or whatever). Start from: Spring Boot Spring MVC Spring Data
2nd Feb 2020, 6:38 PM
Tashi N
Tashi N - avatar