Current time: 11-22-2024, 10:27 PM Hello There, Guest! (LoginRegister)


Post Reply 
curl crashes! How do I update curl?
Author Message
zabersoft Offline
Junior Member
*

Posts: 14
Joined: Apr 2008
Reputation: 0
Post: #11
RE: curl crashes! How do I update curl?
rbtux Wrote:can you provide the scripts or example code that crashes in your installation?

Hi!

I think I have located the problem - maybe it's a buffer overflow issue or something of the sort. In any case, after much headscratching I tried a workaround solution by putting the script on the server that worked and then use curl to fetch the output to my own server. Now, this still crashed! Which it shouldn't if it was a response/header problem with the remote server that I have no control over.

So - I did a little experiment - I took the output and saved it as a html file - then from my own server I ran this simple code:

Code:
$url = "http://www.zabersoft.com/trendy/test.html";
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_HEADER, true);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    $html = curl_exec($ch);
    curl_close ($ch);

And it crashes!

Try going to that URL - It's just plain old text. But for some reason this makes the server puke all over the place and return http 500

Any ideas what is going on???

Thanks!

Zaber
04-25-2008 09:32 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: curl crashes! How do I update curl? - zabersoft - 04-25-2008 09:32 AM

Forum Jump:


User(s) browsing this thread: 4 Guest(s)