curl - USERPWD
| From: | Benji Spencer | Date: | Mon, 12 Feb 2001 20:00:53 +0000 |
| Subject: | curl - USERPWD | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-39254@lists.php.net to get a copy of this message | ||
Has anyone successfully used CURL_USERPWD?
When using this, it returns a "Document contains no data", and a "segmentation fault" is written to the apache error_logs. I can produce slightly different results by leaving the username:password field empty. It at least writes a "password:" line to the error log.
Some details of the configuration:
Apache 1.3.12
PHP 4.0.4pl1
libmcrypt 2.2.x (I think it is 2.2.6 and 2.2.7)
Linux and Sun boxes
the php script...
<?php
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL, "http://$url/$page");
$user="someone";
$pass="someplace";
curl_setopt($ch,CURLOPT_USERPWD, "$user:$pass");
curl_exec($ch);
curl_close($ch);
?>
ideas of what I am missing?
I want the output to go straight to the browser (used to retrieve images..other suggestions for grabbing images are welcome)
benji
---
Ben Spencer
Web Support
bspencer@moody.edu
x 2288