HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Using curl to upload a file

 
Felix S
Occasional Visitor

Using curl to upload a file

I am trying to upload a file to an https site and apparently the file is not upload...I am at a lost any help is appreciated.

$ curl --insecure --progress-bar -v -F "upload=@felix.txt" -u "
username:password" "recipient=bpursley" -F
https://premier-ftp.premierinc.com/ftp/index.cgi
$ exit

the recipient field is not taking nor is the file being uploaded.
2 REPLIES
John Gillings
Honored Contributor

Re: Using curl to upload a file

Felix,

In my experience curl is very chatty.. lots of output messages, possibly meaningless, but maybe not!

Please post whatever output you have.

I'd also be checking very basic operations before trying anything fancy. What does

$ curl http://www.google.com/

do?
A crucible of informative mistakes
Steven Schweda
Honored Contributor

Re: Using curl to upload a file

I'm not a big cURL user, so I know nothing,
but ...

> Using curl [...]

Which version? On what?

> $ curl [...]

Does that command make sense? I seem to see:

--insecure --progress-bar -v

-F "upload=@felix.txt"

-u "username:password"

"recipient=bpursley" -F <---???



> Please post whatever output you have.

At least. You might also try to look at
what a real Web browser does, before trying
to get cURL to do the same thing.