cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: post-callback example

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Tue, 19 Apr 2011 18:40:00 +0200

 
Jan de Lint wrote:

> $_FILES is empty, given the example.

I suggest you:
- Use a sniffer like wireshark to check what you really transmit to the
server.
- Check your server configuration: upload enabled? Upload limit?
Temporary directory? Look in http server config and php.ini.
- Try to upload a file to your server by browsing a regular html file
containing a well-purposed <form>.
- Read example http://curl.haxx.se/libcurl/c/postit2.html and source
file https://github.com/bagder/curl/blob/master/lib/formdata.c top
comment and _FORM_DEBUG conditional code.

Note the post-callback.c example illustrates posting as-is text rather
than structured form data: the above mentionned example is more
appropriate to you IMHO.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-04-19