cURL / Mailing Lists / curl-library / Single Mail


PNG Image resolution

From: Robert Ingoglia <>
Date: Thu, 29 Dec 2011 22:29:44 -0500


I am very new to all of this, but if you fine folks would tolerate a “newbie,” I would be most appreciative.

To be very brief, I wrote my very first cURL script within a php file and uploaded it to my website:

     $curl = curl_init();
     curl_setopt ($curl, CURLOPT_URL, "");
     curl_exec ($curl);
     curl_close ($curl);

IT WORKS PERFECTLY! (sorry to shout, but I am ecstatic)

However, when I modify the name of the url (so that a grapic file with a png extension is “pointed to”):

     $curl = curl_init();
     curl_setopt ($curl, CURLOPT_URL, "");
     curl_exec ($curl);
     curl_close ($curl);

…The picture does not show up (as a picture) but as gibberish:

‰PNG  IHDRXсï7c¿PLTEßßÿ -ŸŸÛÿÿÿg_·Â¿âI?©àßð¤ŸÔ+­›†ƲÌäØåñØðú²ãöÿrrÜ[fíglÿÆrܯfí»lÿÿrÜèfíólíøpÜònÝÝÝÃÃß­SS_oo77?‹‹Ÿ§§¿’’§ªªÃ007HHSaao}}yy‹@@ÿ\hüy‘ú•ºøNTý£Î÷j}ûµµåggöÉÉáSVþÏÏÿ‡¥ùSSú¢¢éççÿWWÿooÿ‡‡ÿflýŸŸÿ··ÿff¨Æäy8Š …

If I may just ask someone to tell me what I am doing incorrectly (nothing else but that), I would be thrilled.



Dr. Robert Ingoglia
Professor - Department of History
Felician College
262 South Main Street
Lodi, NJ 07644
office: 201-559-6135 (voice mail available)
web page:
Member of CWOP (Citizen Weather Observer Program)
Station: DW8219 at

"What Orwell feared were those who would ban books. What Huxley feared was that there would be no reason to ban a book, for there would be no one who wanted to read one."

Neil Postman, Amusing Ourselves to Death, p. vii

This outgoing email has been scanned by the MessageLabs Email Security System for Felician College.

List admin:
Received on 2011-12-30