cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: sequential posting using the same handle

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 15 Nov 2002 11:00:10 +0100 (MET)

On Thu, 14 Nov 2002, Andrew Hazen wrote:

[check the address again, you mailed the admin adress and not the actual list
address, cc'ed over to the actual list now]

> When I try to do sequential postings within the same session using curl, I
> get the following error message:

> "Multiple executions on the same handle are not currently supported,
> please upgrade to the next version of PHP".

> Is there something that has to be changed in the CURL installation or in
> php.ini file?
>
> We are running PHP 4.1.1 with libcurl 7.9.2 (OpenSSL 0.9.6a) (ipv6
> enabled) on a FreeBSD server.
>
> I've done this before with PHP 4.2.2 with libcurl 7.9 (OpenSSL 0.9.6b)
> on an NT server.
>
> I made a php function to do the post. I pass the curl connection handle
> by reference into the function.

(I'm not the author of the PHP/CURL module, I only tell you what I think is
the case here. Sterling or someone will need to correct me if I'm wrong.)

I believe the PHP/CURL module was never designed to allow this, and the fact
that previous versions allowed this was a mistake (as it didn't work
completely and was more or less pure luck). Later versions then added a check
to prevent the re-use as the code didn't deal with it properly.

Since libcurl supports this perfectly well, the PHP/CURL module needs to be
fixed to work with this. I believe the PHP guys are working on that part, and
I know they work on supporting the multi interface soonish.

As said before, I'm not a PHP hacker.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
Received on 2002-11-15