get image from browser url.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,

I am writing a script that uses curl to access a
webpage that is password protected and uses cookies. 
The webpage displays a graph on my browser and I would
like to capture and save that graph to a file.

This is the url I am using in curlopt_url :

http://10.10.10.22:8080/NetPerfMon/ViewChart.asp?Chart=AVGRTLOSS&NetObject=N:4&Period=Today&SampleSize=30M&ReBuild=TRUE&FontSize=Medium&Width=640&Height=0";)

If I cut and paste this to my browser the graph gets
displayed but when I use my sript this is the ouput of
the curl_exec:

<img
src="/NetPerfMon/Chart.asp?Chart=AVGRTLOSS&NetObject=N:4&Period=Today&SampleSize=30M&ReBuild=TRUE&FontSize=Medium&Width=640&Height=0"
border="0">

Which is not what I want, I actually want to grab and
save the image that I see on my browser. 

Can this be done and can someone help me out ?

Thanks,

--
buck



---
Emanuele Buttice


	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux