cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: -F and config files

From: Howell, Andrew <andrew.howell_at_moeller.co.uk>
Date: Mon, 28 Jul 2003 09:24:27 +0100

> -----Original Message-----
> From: Howell, Andrew [mailto:andrew.howell_at_moeller.co.uk]
> Sent: 28 July 2003 08:42
> To: 'curl-users_at_lists.sourceforge.net'
> Subject: -F and config files
>
> 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?

Actually, it seems that in a config file I can't use -F with something that
pulls in another file, eg:

-F "Filename=@<thefile>"

If I do this in a config file then curl exits with status 26 (read error.)

I'm going to cut my losses and form all this stuff manuall and try to post
using -d

Regards
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