Error 405 is a HTTP-error: method not allowed.

It looks like you are trying to upload a file, but you'll have to find a different approach. Either setup FTP or I guess you could programs a webservice that accepts some data and stores it. Depending on what needs to happen next, that could make sense.