CURL question, cutting off custom request
| From: | Dominic Schanen | Date: | Mon, 16 Aug 2004 15:40:48 +0000 |
| Subject: | CURL question, cutting off custom request | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-193953@lists.php.net to get a copy of this message | ||
Hello,
I'm sending a custom request to a server using CURL, which may contain some high-ascii characters. Are there certain characters that would cause CURL not to send the complete custom request? Are there some CURL options that can help make sure the request is sent in its entirity? Here is my code:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_HTTP_VERSION, 1.0);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $request);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$return = curl_exec ($ch);
Sometimes it appears to cutoff my request with the existance of a NUL character.
Any ideas?
Thanks,
Dominic