cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Command line help

From: michael mittiga <mmittiga17_at_gmail.com>
Date: Mon, 23 Oct 2006 15:07:43 -0400

I am running the curl on a windows xp box. It does work for some urls that
I am trying to pull down a file.

https://xxx.com/xxx/FileDownload/MoveFile.aspx?FilePath=K:/CMA/REFRESHDATA/TRPWL/CUSTOMREPORTS/D_ELINS01_DCASH1.csv&desc=DCASH1

single or double quotes to do not work.

I get the message can not write to body

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"
  % Total % Received % Xferd Average Speed Time Time Time
Current
                                 Dload Upload Total Spent Left
Speed
100 355 100 355 0 0 812 0 --:--:-- --:--:-- --:--:--
346k
curl: (23) Failed writing body

Any suggestions would be appreciated.

On 10/19/06, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Thu, 19 Oct 2006, michael mittiga wrote:
>
> > I am trying to download the above file using curl line command. It is
> not
> > working,
>
> "not working" is so vague we can't possibly guess what the problem might
> be.
>
> curl -u -O user:passwd https://xxx.xx-xx.com/xxxx/FileDownload/MoveFile.aspx?FilePath=K:/CMA/REFRESHDATA/TRPWL/CUSTOMREPORTS/D_ELINS01
> _DCASH1.csv
>
> I take it the URL wasn't written with a space in the middle like this?
>
> Try using double or single quotes around the URL to prevent the shell to
> mess
> with it. You didn't explain what operating system you use, nor what curl
> version this is.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
Received on 2006-10-23