curl-and-php
Malformat error with curl
Date: Fri, 29 Jun 2007 12:42:35 +0200
Dear All,
I am trying to post a file with curl, but it always gives me a malformat
error (errno: 3). I have tried absolut/relative path, but nothing helped...
Does anyone has a hint or suggestion?
Thank you,
Gergely
$post=array();
$post['file']="@".urlencode("/web/direktingatlan/direktingatlan.hu/a.php");
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"/a.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$httpresult=curl_exec ($ch);
print curl_errno($ch);
print curl_error($ch);
curl_close ($ch);
print $httpresult;
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-06-29