Currently, my script needs an input from user which will then do a HTTP Post (using curl) and the response will be another url to download a file and when user clicked on it will trigger download of the file into user's pc.
Now all this are working but I need to change the flow to this:
- After input from user, http post must be from the server rather than from the user's machine.
- Subsequent file download will also be into the server and subsequently showed to user.
For 2) I am using the following PHP download to server instead of client
For 1), how do I do http post from server rather than from client after input from user?