cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 26 Apr 2009 13:35:32 +0200 (CEST)

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.

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.

-- 
  / 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
Received on 2009-04-26