note 36457 deleted from function.curl-setopt by betz

From: Date: Fri, 23 Apr 2004 10:13:33 +0000
Subject: note 36457 deleted from function.curl-setopt by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-68613@lists.php.net to get a copy of this message
Note Submitter: ---- I had to POST a multipart/form-data file upload with a specific content type (text/xml), but the php curl functions were only sending it as text/plain. Not only that, but I had to use BASIC authentication to make the POST. On Linux I was able to use the backtick operator to do the deed: <?php $exec = "/usr/local/bin/curl -u $username:$password " . "-F \"file=@$my_upload_file;type=text/xml\" " . $upload_url; $response = $exec; ?>

« previous php.notes (#68613) next »