Let’s say I need to upload files to a server programmatically using uploading a file programmatically can a server whatever php java or asp.net return me a value when using POST request method instead of GET ?
If not how can I ask the server which files have been uploaded correctly or that uploads have finished ?
I mean if the server is ANOTHER server than mine I can’t see how to get the response so can you give some sample code or refer to some urls.
It can, same way as
GETrequests e.g. server can answer with JSON format string response which will include uploaded files or it can return full html page, whatever you need.E.g. if you want to send some data to server using
POSTmethod and you want to alert it you can do something like this (jQuery):Generally it shouldn’t matter if it was
GETorPOST, response is returned from server, the only thing you need to do is catch it and perform actions based on response content.