cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: send file to https webserver

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 27 Sep 2010 22:27:43 +0200 (CEST)

On Mon, 27 Sep 2010, Ron Eggler wrote:

> We would like to send a file to a perl file on an https:// remote
> webserver. The browser would ask for user credentials username &
> password. We've tried several things and the closest we've seeminly
> gotten was with "curl -k -U admin
> https://192.168.101.176/cgi-bin/upload.cgi"

-U (uppercase u) sends proxy user name. You use -u (lowercase u) to send
host user name.

> - after this it would ask for the password but then it's still barkingn with
> a 404 about "Authorization Required" - how come?

404 is "file not found", it is not related to authorization at all. I assume
you mean you get a 401 since you don't provide the correct host user name.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-27