September 14th, 2011, 11:57 AM
Join Date: Sep 2011
Time spent in forums: 1 h 12 m 37 sec
Reputation Power: 0
CURL returns cryptic message
OK here is the problem:
I have created a simple test method to get an arbitrary external page using cURL. The code "seems" to work in that it does not return an error as such, just a cryptic message "Some error occured". That is absolutely no help.
Here is the code:
// class to get text of external page
public function getPage()
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
if (curl_exec($ch) === false)
return "Error: " + curl_error($ch) + "<br />\n";
//Create new instance of jAPIBaseClass with names
//of all classes that you want to use them separeted with comma...
Does anyone have an idea what is happening? Why the cryptic message from cURL?
It works fine.
=== UPDATE 15 Sept 2011 =====
Changing the text type to HTML does not change the error.
Last edited by AD5XJ : September 15th, 2011 at 06:09 PM.