You are not logged in.

#1 2009-06-24 07:14:55

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

[SOLVED]cURL got problem uploading file with "[]" in the name

$ curl -# -iv -u username:passwd -T '[gg].png' 'ftp://ftp.liondrive.com:2221'
curl: (3) [globbing] error: bad range specification after pos 2

When I rename [gg].png to gg.png, it's all just fine.

Anybody encountered same thing?
What's the problem?

Last edited by lolilolicon (2009-06-24 07:18:05)


This silver ladybug at line 28...

Offline

#2 2009-06-24 07:16:56

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED]cURL got problem uploading file with "[]" in the name

OK, I got it

The problem is caused by curl attempting to do globbing on urls that contain []{}. The best fix would probably be for hpodder to invoke curl with --globoff.

....Ha, should have googled the error message before posting. Sorry.

Edit

another woraround is use escape...

curl -# -iv -u username:passwd -T '\[gg\].png' 'ftp://ftp.liondrive.com:2221'

Last edited by lolilolicon (2009-06-24 07:26:43)


This silver ladybug at line 28...

Offline

Board footer

Powered by FluxBB