cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: File transfer to certificated secure site

From: Chris Dawson <xrdawson_at_gmail.com>
Date: Mon, 28 Nov 2005 09:43:10 -0800

Do you mean POST of a file to an HTTPS site? If so, there is a huge
thread on this called "problem with HTTPS post of file: "Expectation
failed"

In a nutshell, you can do this:

curl -F "mp3_file=@small.mp3" https://foobar.com/post.cgi

If the certificate signator is not recognized, you might need the -k
switch. This is all documented in the man page.

Chris

On 11/28/05, Russell Deitch < russdeit_at_hotmail.com> wrote:
> Hi there.
>
> Is there an example of a command line in which a file is sent to a secure
> certificated web server?
>
> Thank you.
>
>
>
Received on 2005-11-28