cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: new line in multipart/form-data in curl exe

From: Oren Amsalem <oren_amsalem1_at_hotmail.com>
Date: Sun, 26 Apr 2009 15:07:54 +0300

----- Original Message -----
From: "Daniel Stenberg" <daniel_at_haxx.se>
To: "the curl tool" <curl-users_at_cool.haxx.se>
Sent: Sunday, April 26, 2009 2:35 PM
Subject: Re: new line in multipart/form-data in curl exe

> On Sun, 26 Apr 2009, Oren Amsalem wrote:
>
>> -----------------------------150063110124393
>> Content-Disposition: form-data; name="url_mass"
>>
>> http://fdfsdf
>> http://gdfgdfg
>> -----------------------------150063110124393
>>
>> I know the line should go like this
>>
>> curl -F "url_mass= $Links" $URL
>>
>> But how do I state new line between links?
>
> You pass a true newline. With multipart posts there's no encoding
> involved.
Thanks I'll better pass the question to the programing language forum.
>
> It might be easiest with something like curl -F "user_mass=<readfrom"
> $URL, where 'readfrom' is the name of the file holding the list of newline
> separated urls.
That will make life much easier.
>
> --
Thank you very much curl sometimes can make life really easy.
>
> / 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
>

-------------------------------------------------------------------
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-04-26