Re: [PHP-DB] Re: curl

2007-03-07 Thread datsclark
The code works with that link, although I wasn't able to immediately download the file. I'm not sure whats up, but it isn't segfaulting. I'm on PHP5.2.0 with libcurl/7.14.0 OpenSSL/0.9.8d zlib/1.2.3 ( Not sure what's up with the RBL, email here is a little screwy. ) "Ron Croonenberg" <[EMAIL

Re: [PHP-DB] Re: curl

2007-03-07 Thread Ron Croonenberg
Hi, what version of php and curl are you using ? does your code work (without getting a segmentation fault) for this link : https://doc.telin.nl/dscgi/ds.py/Get/File-29224 ? this is the code I am trying to use: $ch = curl_init(); $timeout = 5; // set to zero for no timeout curl_seto

[PHP-DB] Re: curl

2007-03-07 Thread datsclark
I found this class in the PHP documentation, and edited it a bit. It works for me, getting the header and the body separately. You may want to experiment with the "m_handle = curl_init(); curl_setopt($this->m_handle, CURLOPT_URL, $sUrl); return; } function setOpt($sOpt, $sVal) { curl_