cURL / Mailing Lists / curl-users / Single Mail

curl-users

-F and config files

From: Howell, Andrew <andrew.howell_at_moeller.co.uk>
Date: Mon, 28 Jul 2003 08:41:36 +0100

Hello,
        I am trying to use curl to upload to a HTTPS server with version
7.10.5 for win32. I need to use the -F option several times to specify a
number of form fields. Unfortunately I end up with a command that is
~300bytes long and (lame) DOS truncates commands to 127bytes length..

I decided I could use -K <config file> to specify all my command line
parameters to get around this limitation but I find that -F doesn't =seem=
to work properly in a config file. As soon as I include a single -F in my
config file, curl uploads something to the URL but receives nothing. If I do
the equivalent with a command line switch then I receive stuff OK and it
seems to work differently.

Can I use -F in a config file?

If I can't, is the best workaround to form all the headers myself in an
ASCII file and use the -d option?

Thanks,
Andrew Howell

_____________________________________________________________________
The contents of this email may be priviledged and are confidential. 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 advise the sender, then delete it from your system.

This message has been checked for all known viruses by the MessageLabs Virus Control Centre.

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-07-28