Download PPP Graphs with php & Curl

Hello everybody:
I’m developing a support system app with API.
Everything work fine, but there are only one thing that i can’t resolve:

I need get the “PPPoE Queue Graph” of any client and then send it attached in a mail.
But The image recived is:
daily.gif
If i type this: (in my linux console where the site is hosted)…

root> curl -I http://201.50.X.X:8090/graphs/queue/%3Cpppoe-hsthele10181%3E/daily.gif

HTTP/1.1 200 OK
Connection: close
Content-Length: 16638
Content-Type: image/gif
Date: Mon, 11 Jul 2011 22:35:47 GMT
Expires: 0

However, if try the following: (get the image) “http://200.50.X.X:8090/winbox.png”, this is downloaded perfectly.

Process: copy (Queue image) ‘dialy.gif’ with PHP Script, Using Library GD or CURL, in a local linux folder. the error returned is: “ERROR: - Invalid ID”

May be a permission problem of mikrotik?

Best regards.

somebody can help me?
Why the “Error_ - Invalid ID”. (i think is returned by mikrotik).

nothing? :frowning:

I have no problem receiving daily.gif both on v3.28 (I checked with PPTP user) and v5.0rc11 (graph for ethernet interface) - so seems like you’re just trying to get graph for offline user

Thank you Chupaka, was a encode problem of the URL. In the code that i have:

$archivo = htmlentities ($_GET["archivo"]);

and deleting “htmlentities”, now, i can get the file!!
Best Regards!