cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: USER:PASSWORD on windows.

From: Roth, Kevin P. <KPRoth_at_MarathonOil.com>
Date: Fri, 23 Aug 2002 08:36:24 -0400

And, you aren't by chance actually including the angle brackets are you? Have you tried using quotation marks to escape it out?

Try this (if username is "bob" and password is "password"):

  curl.exe -u "bob:password" http://your.url.here/

Another option you may not have noticed - you can leave the password blank, and be prompted for it interactively. This would look like this (enter your password when prompted as in the 2nd line):

  curl.exe -u "bob" http://your.url.here/
  password:

Thanks,
--Kevin

-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r
Received on 2002-08-23