Search This Blog

Wednesday, August 5, 2009

Curl's epsv broken when upload file via ftp.

Passive mode just wasn't good enough so engineering thought extended passive mode would fix something I had no clue was broken. However curl (the swiss army knife of moving web data around) didn't exactly implement it correctly.

To get the passive ftp uploads to work, you might have to use the
--disable-epsv
switch twice!!

curl --data-binary --disable-epsv --disable-epsv -v -u user123:mypasswd -T "myfile.tab" ftp://ftp.xyz.com/uploads/

Something is broke in curl's arg routine but this works for me. So try this if you're getting stuck with at "229 Entering Extended Passive Mode".

No comments: