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

curl-and-php

Re: Post file using command line curl...

From: Cyntech Solutions <cyntech_at_cableone.net>
Date: Sat, 8 Nov 2003 12:04:22 -0600

Thanks, I found then posted to the correct list, sorry.

NH

----- Original Message -----
From: "Daniel Stenberg" <daniel-curl_at_haxx.se>
To: "curl and php list" <curl-and-php_at_lists.sourceforge.net>
Sent: Saturday, November 08, 2003 7:21 AM
Subject: Re: Post file using command line curl...

> On Fri, 7 Nov 2003, Cyntech Solutions wrote:
>
> > 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=cynt
ech_at_cableone.net&description=test+description&permission=1&headline=&categor
y=&start_date=&stop_date=&e
> > xtra1=11%2F8%2F2003&extra2=&extra3=&extra4=&add=Submit"
> > http://SomeDomain.com/projects/submit_project.asp
>
> > I need curl to follow redirections to result page given by the receiving
> > server The file 1.jpg exists in the current directory.
>
> Since you don't show us how the form looks that you're trying to fill in,
how
> can we tell if you're doing the right thing or not?
>
> I admit the command line looks utterly wrong, since you seem to be
using -F
> with input data that looks suitable for -d.
>
> Also, we do have a curl-users mailing list that might be better for curl
(the
> command line tool) questions.
>
> --
> Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
> [[ Do not post private mails to this email address. They won't reach
me. ]]
>
>
> -------------------------------------------------------
> 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/
>
>

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