curl-users
RE: curl win32 commandline question
Date: Wed, 14 Mar 2001 10:19:51 +0100
Daniel Stenberg wrote:
>> What am I missing here?
>How to put quotes around the URL properly. ;-)
Thanks, Yep, I tried escaping the & with \& as on linux at home, but that
did not work. On windows you need to enclose the whole url in "".
Some urls work correctly now, but others expect a cookie and fail. The
cookie value is dynamic, as the name is ASPSESSIONIDGQGGGQDM and the value
changes.
curl -A 'Mozilla/5.0'
"http://www.aex.nl/scripts/marktinfo/Optiekoersen.asp?taal=nl&Symbool=KPN&a=
1&History=YES"
gives header:
HTTP/1.0 200 OK
Server: Microsoft-IIS/4.0
Date: Wed, 14 Mar 2001 08:59:39 GMT
Content-Length: 1335
Content-Type: text/html
Expires: Wed, 14 Mar 2001 09:11:39 GMT
Set-Cookie: ASPSESSIONIDGQGGGQDM=BGCKOHPCAJLBHIOAEJLEIEGC; path=/
Cache-Control: Public
Age: 249
X-Cache: MISS from etamail.intranet.eta.nl
Proxy-Connection: close
I tried the -b "ASPSESSIONIDGQGGGQDM=BGCKOHPCAJLBHIOAEJLEIEGC" option but
did
not work.
Also -L -b empty-file
Also -b previous-header-file
Is there a way to trick this server?
Should I try lynx in this case which has an option accept-all-cookies?
best regards,
Peter
-----Oorspronkelijk bericht-----
Van: owner-curl_at_contactor.se [mailto:owner-curl_at_contactor.se]Namens
Daniel Stenberg
Verzonden: Tuesday, March 13, 2001 11:22 PM
Aan: Curl Mailinglist
Onderwerp: Re: curl win32 commandline question
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-14