cURL / Mailing Lists / curl-users / Single Mail

curl-users

how to handle the username has ":" character problem?

From: Jun Yin <hansyin_at_gmail.com>
Date: Mon, 29 Nov 2010 09:25:35 -0800

Hi,

I'm new to here. Thanks for help.

in my test, I need to use user authentication and username has ":"
character in it, so the command should be like:

curl -v ftp://192.168.6.100:2121/test.txt --user
test-local:123456:test-ftp_at_172.18.14.111":123456

username is "test-local:123456:test-ftp_at_172.18.14.111" and password is 123456

my problem is curl does not work this way and always take test-local
as username.

I tried "curl -v ftp://192.168.6.100:2121/test.txt --user
"test-local\:123456\:test-ftp_at_172.18.14.111":123456" and other forms,
no luck.

Can anybody tell me if there is a workaround?

Thanks a lot!!!

-- 
Rgds,
Hans Yin
Web:   http://sourceforge.net/projects/autotestnet/
Email:  hansyin_at_gmail.com
MSN:   hansyin_at_hotmail.com
Skype: hans_yin_vancouver
-------------------------------------------------------------------
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-11-29