RE: [PHP] HTTP POST a file with CURL <----------PLEASE HELP!!!!!!

From: Date: Fri, 28 Jun 2002 00:52:24 +0000
Subject: RE: [PHP] HTTP POST a file with CURL <----------PLEASE HELP!!!!!!
Groups: php.general 
Request: Send a blank email to php-general+get-104239@lists.php.net to get a copy of this message
The command line CURL has the -T option - might be worth looking to see if you can do the same in PHP, otherwise you might have to break out of PHP and use the system's CURL Martin -----Original Message----- From: SpamSucks86 [mailto:spamsucks86@comcast.net] Sent: Friday, June 28, 2002 10:12 AM To: php-general@lists.php.net Subject: [PHP] HTTP POST a file with CURL <----------PLEASE HELP!!!!!! If I had a form on a page with <input type="file"> it would POST the file to the script. I want to have a PHP script read a file and then emulate that action to another script. Since the enctype="multipart/form-data" I'd think that I can't just use the normal POST method with CURL to do it. Anyone know how to do this? Thanks for any and all replies.

« previous php.general (#104239) next »