cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl PHP weirdness, apache seg fault. - fixed

From: John Wards <j.wards_at_sportnetwork.net>
Date: Sat, 18 Sep 2004 15:51:39 +0100

Quoting John Wards <j.wards_at_sportnetwork.net>:
> Right I have been debuggin myself on this, here is my verbose output
>
[snip]
>
> [Sat Sep 18 14:46:20 2004] [notice] child pid 88789 exit signal Segmentation
> fault (11)
>
> I added this line to my script as it was doing a HEAD request which I thought
> was the issue but it is still seg faulting.
>
> curl_setopt($ch,CURLOPT_HTTPGET,1);
>
> Any more debugging info would be helpful.

Fixed it my self, I had a brian storm when I hit send on this one:

I've added this line on my last GET request:
curl_setopt($ch, CURLOPT_POSTFIELDS, "");

Which has stoped the seg fault!

Not sure if that is a bug or some obvious n00b mistake.

Cheers
John

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Received on 2004-09-18