note 67522 deleted from ref.curl by bjori
| From: | bjori@php.net | Date: | Thu, 08 Jun 2006 16:57:29 +0000 |
| Subject: | note 67522 deleted from ref.curl by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-113861@lists.php.net to get a copy of this message | ||
Note Submitter: amin_maalej at yahoo dot fr
Reason: non-english
----
j'arrive pas a tourner un exemple avec curl ,en fait je veux transmettre un form vers une
servlette java (il est exiger d'utiliser la methode post et
enctype="multipart/form-data" )
le code que j'utiilise est:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http:nom servlette");
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$result=curl_exec($ch);
curl_close($ch);
echo $result;
comment je fais pour ajouter enctype="multipart/form-data"
merci d'avance.