cURL / Mailing Lists / curl-users / Single Mail


Re: How to download a file using CURL command

From: Dan Fandrich <>
Date: Tue, 16 Oct 2007 13:00:58 -0700

On Tue, Oct 16, 2007 at 12:20:22PM +0100, Babu, Ramesh (LBD) wrote:
> Please provide solution to my problem........
> If I type the following URL sample in internet explorer, popup will come to
> save the file (XML file).
> <
> nitials=RZ&function=SEARCH&vrm=xxxxxx&XML=TRUE&deviceType=XM>
> itials=RZ&function=SEARCH&vrm=xxxxxx&XML=TRUE&deviceType=XM
> Note: xxxxxx has some meaningfull information, due to security reasons, I
> didn't mention the exact website name and values.
> I would like to receive the file in above URL with CURL command.
> If I use CURL
> <
> nitials=RZ&function=SEARCH&vrm=xxxxxx&XML=TRUE&deviceType=XM>
> itials=RZ&function=SEARCH&vrm=xxxxxx&XML=TRUE&deviceType=XM, I am getting
> error like Only Search Function is currently Supported In Gate call!.
> I tried using -o -v --trace options with CURL. Please tell me CURL command
> to download the file using above URL.

There are a couple of potential problems here, and because you didn't show the
exact command you used or the exact results you got, all I can do is guess.
One is that the URL needs to be in double quotes because some of the
characters can be treated specially by the shell. Another is that the server
might need cookies enabled to work properly. Another is that some of the
parameters (e.g. vrm) might be cookies in disguise, and would need need to be
pulled from a new form before each download. Finally, the server could be
failing because the User-Agent header isn't recognized.

> The opinions expressed in this email represent those of the individual
> and not necessarily those of Lombard Vehicle Management Limited.
> The contents of this email may be privileged and are confidential.

Ooops--it's just been posted to a world-wide mailing list.

> It may not be disclosed to or used by anyone other than the
> addressee(s), nor copied in any way. If received in error, please

Ooops--I just made a copy of it.

> advise the sender, then delete from your system.

Consider yourself notified. I will delete it momentarily.

> Should you wish to use email as a mode of communication,
> Lombard Vehicle Management Limited is unable to guarantee the security
> of email content outside our own computer systems.
> Lombard Vehicle Management Limited
> Registered in England. No 2597082
> Registered Office: 3 Princess Way, Redhill, Surrey, RH1 1NP

Does this mean future discussion on this topic should be sent by postal mail?

> A member of the Royal Bank of Scotland Group.
> Lombard Vehicle Management Limited is an appointed representative of The Royal Bank of Scotland plc, which is authorised and regulated by the Financial Services Authority

Yes, this makes you and Royal Bank look a bit silly.

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-10-16