cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Command line help

From: Kjell Ericson <Kjell.Ericson_at_haxx.se>
Date: Mon, 23 Oct 2006 21:28:39 +0200 (CEST)

On Mon, 23 Oct 2006, michael mittiga wrote:

> C:\Curl>curl -O -u ID:#passwd "https://xxx.com/xxx/FileDownloa
> d/MoveFile.aspx?FilePath=K:/CMA/REFRESHDATA/TRPWL/CUSTOMREPORTS/D_ELINS01_DCASH1
> .csv"
> curl: (23) Failed writing body
>
> Any suggestions would be appreciated.

Try removing -O and add "-o output.csv".

When I tried similar command then the destination file was everything after
the last / which in your case contains illegal characters for filenames in
Windows.

Daniel: I wouldn't mind if curl wrote out the filename it can't create.
Using "-v" doesn't help either...

  // Kjell
Received on 2006-10-23