cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: sending "multiline" post?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 5 Sep 2005 20:04:15 +0200 (CEST)

On Mon, 5 Sep 2005, Lolita wrote:

> hmm i tried
>
> C:\>curl -v -0 -A "Mozilla/4.0 (compatible; Synapse)" -d
> "$FORMAT$=GameList\n$VER$=1.01\nPLAYER=Lolita*\nID=5056295546\nT=16"
> http://80.188.162.104:26500/cgi-bin/gameserver.cgi

Ok, then the Windows command prompt doesn't allow that. Consult your manual
for details on how to do it then.

> C:\>curl -v -0 -A "Mozilla/4.0 (compatible; Synapse)" -d
> @C:\test-curl.txt http://80.188.162.104:26500/cgi-bin/gameserver.cgi

Ah, right! You should use --data-binary instead of -d since the ordinary -d
option discards newlines when it reads from a file. IIRC.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-09-05