cURL / Mailing Lists / curl-users / Single Mail

curl-users

Segmentation fault

From: <Alan_at_barrltd.com>
Date: Sat, 15 Jun 2002 23:25:28 -0400

Greetings,

On the PHP code below, I'm getting a "segmentation fault". I've got this
in a file and I'm invoking php from the command line to process the file.
Neeedless to say, when ivoked via a browser and the page does this, its
causeing some problems. Does anyone have any suggestions?

CURL version: libcurl 7.9.7 (OpenSSL 0.9.6a)
PHP version 4.1.2
FreeBSD version 4.5-RELEASE-p4

Thanks

Alan
alan_at_barrltd.com

the offending code:

<html>
<body>
<?
 print("starting curl \n");

 $ch = curl_init();
 curl_setopt ($ch,
CURLOPT_URL,"https://secure.ibill.com/cgi-win/ccard/rssignup.exe?RequestType
=SignupRevSharer&SuccessURL=http://www.mystats.com&MasterAccountID=12345&s4p
lxrevsharereferredby=");
 curl_setopt ($ch, CURLOPT_VERBOSE, 1);
 curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 0);
 curl_setopt ($ch, CURLOPT_RETURNTRANSFER,1);
 $result = curl_exec ($ch);
 curl_close ($ch);

 print("ending curl \n");
?>
done
</body>
</html>

the result

<html>
<body>
starting curl
* About to connect() to secure.ibill.com:443
* Connected to secure.ibill.com (12.8.9.40) port 443
* SSL connection using DES-CBC3-SHA
* Server certificate:
* subject: /C=US/ST=Florida/L=Fort Lauderdale/O=Internet Billing
Company Ltd./OU=ibill/CN=secure.ibill.com
* start date: 2002-03-07 00:00:00 GMT
* expire date: 2003-03-27 23:59:59 GMT
* issuer: /C=US/O=RSA Data Security, Inc./OU=Secure Server
Certification Authority
> GET
/cgi-win/ccard/rssignup.exe?RequestType=SignupRevSharer&SuccessURL=http://ww
w.mystats.com&MasterAccountID=12345&s4plxrevsharereferredby= HTTP/1.1
Host: secure.ibill.com
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

* Closing connection #0
Segmentation fault (core dumped)

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
Received on 2002-06-16