cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Uploading Files

From: Nate <nate_at_visimark.us>
Date: Sat, 5 Feb 2005 08:15:59 -0700

So cURL can only upload files via http that exist LOCALLY. E.g. it could
not display a multipart form on a website with a browse button where a
remote user selects a file and then clicks a submit button to upload the
file and cURL handles the entire process.

But if the file was already on the server locally and I wanted to put it
onto a different server I could upload it via cURL by using "curl -F
upload=@localfilename -F press=OK [URL]".

Am I getting close?

-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Saturday, February 05, 2005 3:09 AM
To: curl tool talk
Subject: RE: Uploading Files

On Fri, 4 Feb 2005, Nate wrote:

> What I am looking for is a real life example for uploading files using
> cURL using the various http upload methods put, etc. With each step
> broken down and explained and the advantages/disadvantages of each method.

I've made an effort to sum things up in this document:

         http://curl.haxx.se/docs/httpscripting.html

Does that cover what you're asking?

> I will have several clients uploading large files and I want it to be
> stable. Can cURL give me more speed and reliability then a standard
> php upload?

I don't know what a "standard php upload" is nor how reliable it is so I
wouldn't know. AFAIK, curl tranfers are stable, fast and reliable.

> I can see using cURL for things like AIM with Authorize.net, but when
> would you use cURL upload instead of php upload for example.

I've never used php upload.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-02-05