yyy
yyy

Reputation: 425

Post data from Server side in Spring MVC

I am making a automation website to send multiple files to an another site to prevent filling form every time to send a file.

I want to to make the POST request from server, because AJAX doesn't allow request to other domains.

How I can make this?

I am using Spring MVC3

Upvotes: 0

Views: 1174

Answers (2)

Bozho
Bozho

Reputation: 597402

Use apache http components - it allows you to perform http requests. You can also use (without 3rd party libraries) new URL(..).openConnection(), but it's less pleasant to code with it.

Upvotes: 2

Perception
Perception

Reputation: 80633

You can use Apache HTTP Components to implement pretty much any HTTP calls you want in your application. Also, note that it is possible to do cross domain AJAX with certain helper technologies like Flash ... if you really needed too.

Upvotes: 1

Related Questions