curl-users
Re: curl win32 commandline question
Date: Tue, 13 Mar 2001 23:22:26 +0100 (MET)
On Tue, 13 Mar 2001, Peter meulmeester wrote:
> But I really want to add more parameters such as:
>
> F:\curl>curl -A 'Mozilla/5.0'
> http://www.aex.nl/scripts/marktinfo/OnderliggendAandeel.asp?Symbool=KPN&taal
> =nl
>
> The WinNT commandline does something with the & and says:
> The name specified is not recognized as an
> internal or external command, operable program or batch file.
You should probably escape that &-letter somehow. Like enclosing the entire
URL with quotes " or '.
> I tried using posting with the -d option such as:
>
> F:\curl>curl -A 'Mozilla/5.0' -d "Symbool=KPN"
> http://www.aex.nl/scripts/marktinfo/OnderliggendAandeel.asp
>
> and from a file with "-d @datafile". But even with just one argument it
> does not work.
Well, just making a POST instead of a GET is not always appriciated by the
receiving script/program. I would stick to GET if I were you.
> What am I missing here?
How to put quotes around the URL properly. ;-)
-- Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/Received on 2001-03-13