cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: How do I post a file from command line

From: David Hounsome <hounsome.david_at_googlemail.com>
Date: Wed, 6 May 2009 13:23:23 +0100

On Thu, Apr 23, 2009 at 7:02 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Thu, 23 Apr 2009, Doug McNutt wrote:
>
>> The next lines are the hidden form items I mentioned. You can use curl's
>> -F option or you can add them to the URL using the & to extend the URL
>
> -F is the way to duplicate that POST. Using & and appending to the URL is
> only a guess that it might work.
>
>> The 12 hex digit values don't make sense to me.
>
> That's just part of the boundary string separating the different parts.
> curl's -F will use similar separators.
>
> --
>
>  / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
> FAQ:        http://curl.haxx.se/docs/faq.html
> Etiquette:  http://curl.haxx.se/mail/etiquette.html
>

Sorry for the delay in responding with how I got on, not well unfortunatley.

I don't know if it was curl or the hardware causing the problem but
the symptom was only the first part of the message being recieved so
either the hardware wasn't making the correct request for the next
part or curl wasn't sending the next part when requested. With the
deadline looming as close as it was I had to look for alternative
methods and ended up going down the perl LWP route which dumped the
whole text file into one huge message (in case it was the hardware's
problem). Maybe Curl could have this option?

Thanks again for your help, hope this responce helps future readers

Dave
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-05-06