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

curl-and-php

Re: http file upload, setting file name

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 9 Sep 2004 10:55:48 +0200 (CEST)

On Thu, 9 Sep 2004, Gordon Rouse wrote:

> I am interested in knowing if anyone knows how to post a file as below, but
> making it so that the server receives just the file name (in this case
> file.txt) rather than the full path specified. ( as a browser would do it )

It would help me understand this question better if you could show us the
exact contents of the post you want curl to fill in for you.

Passing only a name and no file would equal sending an empty file. Why not
just do that?

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-09-09