cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: PHP?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 8 Feb 2001 09:29:40 +0100 (MET)

On Thu, 8 Feb 2001 pit_at_paradise.net.nz wrote:

> Hi i was thinking of using PHP module to control my file uploads.

If you're into PHP, that might be a very easy and quick way.

> Does libcurl support PHP?

The question is put the wrong way. Does PHP support libcurl? Yes it does.
You'll find lots of documentation on using curl from PHP on the PHP site
starting at http://www.php.net/manual/en/ref.curl.php

> I'm not sure how to send POST parameters to the script.

To the PHP script? That beats me. I'm not a PHP guy. I think you'll find
numerous of people in the PHP forums that can help you with this. I can even
recommend the book "PHP Developer's Cookbook" which contains examples on how
to use curl from PHP.

> I assume it cannot talk to the html form. Instead it will send the
> parameters to the actual script which handles the file uploads.
> Am i right?

Yes, you're right. I've written quite some stuff about things like this in
the TheArtOfHttpScriping that you can read online at
http://curl.haxx.se/docs/httpscripting.shtml

> It would be really nice to have some sample code. ^^ ( if it's for c++
> under windows environment, even better)

Just added for your pleasure:

        http://curl.haxx.se/lxr/source/docs/examples/postit.c

-- 
  Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/
_______________________________________________
Curl-library mailing list
Curl-library_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-library
Received on 2001-02-08