ok, I've found an issue with it... it seems to be doing multiple posts (or something) as I am getting a whole bunch of results back (copies fo the same page).
for example, if the page "curltestpage.php" that is retrieved has just phpinfo() in it - I get at least three copies of phpinfo all intermingled :P when I change the requested-url to something more useful for us (ie one of our served html pages) I get three copies of it on the same page... all slightly intermingled. AFAIK, only the "curl_exec" should be actually gettign the page - so why am I returned multiple copies all mangled together? What am I doing wrong? :( Cheers, Taryn * Taryn East <[EMAIL PROTECTED]> spake thus: > <?php > // create a new curl resource > $ch = curl_init(); > > > // set URL and other appropriate options > curl_setopt($ch, CURLOPT_URL, > +"http://ourserver.com.au/curltest/curltestpage.php"); > curl_setopt($ch, CURLOPT_HEADER, 0); > curl_setopt($ch, CURLOPT_USERPWD, "username:mypass"); > curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANYSAFE); > > // grab URL and pass it to the browser > curl_exec($ch); > > // close curl resource, and free up system resources > curl_close($ch); > ?> > -- This .sig temporarily out-of-order. We apologise for any inconvenience - The Management -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
