tags:

views:

970

answers:

1

Hi,

How can I upload files to a HTTPS site using CURL?

The site is also password protected.

What's the command line used to upload for that particular site?

+2  A: 

Yes, you can,

$ curl --user login:password --upload-file your.file.txt https://the.url/where/that/should/go

You may need to add --insecure if you don't want cURL to check the certificate chain.

mat
you can check the little box saying you accepted it if it works for you ;-)
mat