cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: post-callback example

From: Jan de Lint <jg.de.lint_at_xs4all.nl>
Date: Tue, 19 Apr 2011 19:30:22 +0200

Op 19-4-2011 18:40, Patrick Monnerat schreef:
>
> 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.
All other examples work as expected, including posting form data.
I must conclude that the particular example is not appropriate for
upload to PHP.
I intend to add the example to the set that comes with the Visual Prolog
bindings as soon as I know what the use case is.
]an
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-04-19