Hello,

I'm in a situation where my application needs to reach a remote server and grab some data from it. It only happens when a user submits a specific form on my website.

Here's the flow:

1) User submits form
2) Reach remote server
3) Get some data
4) Use that data

I can trust remote server. So I was wondering if it would be ok to simply do the following:

1) User submits form
2) Redirect to remote server
3) Remote server redirects to original server with data appended to url (query string)
4) Use that data

Or would it be better to do the following:

1) User submits form
2) cUrl request server
3) Get data
4) Use that data

What are the advantages of each approach (cUrl vs redirects)?