cURL / Mailing Lists / curl-users / Single Mail

curl-users

new line in multipart/form-data in curl exe

From: Oren Amsalem <oren_amsalem1_at_hotmail.com>
Date: Sun, 26 Apr 2009 00:36:16 +0300

I need to send several links in one multipart/form-data boundary, how do i do it?
My request should be something link this

-----------------------------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?
I tried encoding the $Links , But It seems like curl take the %0D%0A (new line encoded) and send it as a data...
What should I do?

Thanks.

-------------------------------------------------------------------
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-25