0

I already know how to upload files via post data with php. But is it possible to upload a file to a different website with curl NB: there is no script on the receiving website to handle file uploads Just send a file to the website from another website straight up.

How is that possible with php and curl ?

6
  • There has to be something to receive the file on the other end: ssh, ftp... What do you have available? Commented Jul 29, 2013 at 11:39
  • With simple post or ftp Commented Jul 29, 2013 at 11:40
  • Well let them run a FTP server and you can use that, else they will have to code a "handler" on their side. Commented Jul 29, 2013 at 11:40
  • 1
    It can't be done with just PHP and curl and nothing on the receiving end, you will have to use a more direct protocol like FTP or SSH. Commented Jul 29, 2013 at 11:42
  • Ok, so i can do that with FTP but then it would require authentication right ? Commented Jul 29, 2013 at 11:59

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.