curl-and-php
Re: Malformat error with curl
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 29 Jun 2007 12:47:13 +0200 (CEST)
Date: Fri, 29 Jun 2007 12:47:13 +0200 (CEST)
On Fri, 29 Jun 2007, Somogyi Gergely wrote:
> I am trying to post a file with curl, but it always gives me a malformat
> error (errno: 3).
No, number three is CURLE_URL_MALFORMAT. The URL is malformatted.
> curl_setopt($ch, CURLOPT_URL,"/a.php");
This is quite far away from a "legal" URL. Try an absoluete one, including the
initial http:// (or whatever you use).
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2007-06-29