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

curl-and-php

1) curl "Segmentation fault" with --trace 2) curl and PHP problem

From: Harry Fearnley <Harry.Fearnley_at_eng.ox.ac.uk>
Date: Mon, 11 Oct 2004 18:21:32 +0100

I am having problems with both curl and curl/PHP. I tried doing
some diagnosis using curl on its own, with --trace (and --trace-ascii)
-- this led to "Segmentation fault", as follows ...

    curl "Segmentation fault" with --trace
    ======================================

I run curl(*) from the (Fedora Core2 Linux) command line. If I use
"--trace" I get a segmentation fault, but only if I have --trace (or
--trace-ascii) set, and _both_ -b and -c also set -- see below:

                     || with --trace | without --trace
--------------------||----------------------------------
with -b, without -c || N | N
without -b, with -c || N | N
with both -b and -c || Y | N

A full command line looks like:

curl --trace traceout.txt --insecure -b nonexist.txt -c cookiestest.txt
      -o out.html https://sitename.domain

Until I can do some proper diagnosis with the curl command line, I
believe that I have no chance to diagnose the problem below.

    curl and PHP problem
    ====================

I have a sequence of curl command lines that do work, and that upload
a file to a server. If I use exactly the same command lines from PHP
(v 4.3.8), but they fail.

(*) curl 7.11.1 (i386-redhat-linux-gnu) libcurl/7.11.1
     OpenSSL/0.9.7a ipv6 zlib/1.2.1.1

Harry

+-+-+-+-+.+-+-+-+-+.+-+-+-+-+.+-+-+-+-+.+-+-+-+-+.+-+-+-+-+.+-+-+-+-+.+-+-+-+-+-
http://www.eng.ox.ac.uk/people/Harry.Fearnley
Dept Engineering Science, Parks Rd, Oxford, OX1 3PJ, UK
Tel: +44 (0)1865 273928 -- Fax: +44 (0)1865 273010
Received on 2004-10-11