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

curl-and-php

Re: sftp

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 1 Dec 2001 13:57:20 +0100 (MET)

On Fri, 30 Nov 2001, Pete James wrote:

> Simply pointing to an obvious location is not going to do him much good,
> as there is very little documentation anywhere on multipart curl
> transfers.

You're right. I could've said a little more, I'm sorry. But...

o For all I know, his mail did not say he wanted to do multipart transfers.
  He mentioned file uploads. To me, that could just as well mean ftp
  uploads.

o The mail did not even hint that he'd read any docs or had started to grasp
  even the basic stuff. That indicated that we would need to find some docs
  and simple PHP examples. My post link provided that.

o It provoked your response, which indeed is a mighty fine example!

> You then repost it by using an associative array, prefixing the name of
> the file with an @ sign.

Doh!

You're right, that's how to do it. That method is however no longer supported
in the PHP CVS reposistory version of the multipart posting code! The reason
for this is that I persuaded Sterling Hughes to abandon the curl_formparse()
function, since that is being obsoleted in libcurl in favour of the new
curl_formadd().

Sterling, do you read this? This will need some attention!

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-12-01