Operating System - OpenVMS
1753519 Members
6119 Online
108795 Solutions
New Discussion юеВ

Using curl to upload a file

 
Felix S
New Member

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 2
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.