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

curl-and-php

Re: How to post file data?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 19 Jul 2006 12:21:35 +0200 (CEST)

On Tue, 18 Jul 2006, Broekhuis,Robert R. wrote:

> I'm trying to write a script for automatic uploading of file data to a
> remote server (form using enctype=multipart/formdata). For ordinary POST
> forms, I just format the header data as if it were a querystring, and
> provide it as the POSTDATA parameter. Where can I read about how to format
> this parameter for file upload data?

That is strangely undocumented in the PHP/CURL world. And if you ask me, it is
done in a weird way. Here's one example at least:

         http://curl.haxx.se/libcurl/php/examples/multipartpost.html

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-07-19