cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Post file using command line curl...

From: Cyntech Solutions <cyntech_at_cableone.net>
Date: Fri, 7 Nov 2003 23:23:14 -0600

Why won't this work?

curl -L -e "http://SomeDomain.com/projects/submit_project.asp" -F "image=@1.jpg" -F "active=0&approved=Not+reviewed&name=test+Name&address=Some+Street&city=City&state=MH&zip=37474&phone_day=555-555-5555&phone_eve=555-555-5555&email=cyntech@cableone.net&description=test+description&permission=1&headline=&category=&start_date=&stop_date=&extra1=11%2F8%2F2003&extra2=&extra3=&extra4=&add=Submit" http://SomeDomain.com/projects/submit_project.asp

Givens;
I need curl to follow redirections to result page given by the receiving server
The file 1.jpg exists in the current directory.

Any Ideas what I am doing wrong??

NH

-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
Received on 2003-11-08