curl-users
Re: Question: for -d POST
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 22 Dec 2005 16:51:09 +0100 (CET)
Date: Thu, 22 Dec 2005 16:51:09 +0100 (CET)
On Thu, 22 Dec 2005, schawk wrote:
> I have a question confusing me but maybe simple to YOU! I use only one
> command line to post , but this command line is too long . So I use [-d
> @filename] to post but it dosen't work until now.
Sure. You could've used --trace and immediately seen if you send the same data
or not...
> -d "announce=@d:\register.txt"
This does not send data from a file. You need to do it like this:
-d "@d:\register.txt"
That is, the first letter must be a '@' for curl to treat the rest as a file
name.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-12-22